Venice 0.751beta

nz.org.venice.quote
Class EODQuoteBundleIterator

java.lang.Object
  extended bynz.org.venice.quote.EODQuoteBundleIterator
All Implemented Interfaces:
java.util.Iterator

public class EODQuoteBundleIterator
extends java.lang.Object
implements java.util.Iterator

Iterator for traversing EODQuotes in an EODQuoteBundle. This iterator allows the user to traverse each quote in any quote bundle. The quotes will be pulled out in date then symbol order. To get an interator for a EODQuoteBundle, use the EODQuoteBundle.iterator() method.

Author:
Andrew Leppard
See Also:
EODQuote, EODQuoteBundle

Constructor Summary
EODQuoteBundleIterator(EODQuoteBundle quoteBundle)
          Create a new iterator over the given quote bundle.
 
Method Summary
 boolean hasNext()
          Return whether the EODQuoteBundle has anymore Quotes.
 java.lang.Object next()
          Return the next Quote in the EODQuoteBundle.
 void remove()
          Removing Quotes from the EODQuoteBundle is not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EODQuoteBundleIterator

public EODQuoteBundleIterator(EODQuoteBundle quoteBundle)
Create a new iterator over the given quote bundle.

Method Detail

next

public java.lang.Object next()
Return the next Quote in the EODQuoteBundle.

Specified by:
next in interface java.util.Iterator
Returns:
quote the next quote

hasNext

public boolean hasNext()
Return whether the EODQuoteBundle has anymore Quotes.

Specified by:
hasNext in interface java.util.Iterator
Returns:
whether there are anymore quotes

remove

public void remove()
Removing Quotes from the EODQuoteBundle is not supported.

Specified by:
remove in interface java.util.Iterator

Venice 0.751beta