net.sf.staccatocommons.iterators
Class EnumerationIterator<A>
java.lang.Object
net.sf.staccatocommons.iterators.AbstractUnmodifiableIterator<A>
net.sf.staccatocommons.iterators.thriter.AbstractThriterator<A>
net.sf.staccatocommons.iterators.thriter.NextThriterator<A>
net.sf.staccatocommons.iterators.EnumerationIterator<A>
- All Implemented Interfaces:
- Iterator<A>, EmptyAware, Thriter<A>, Thriterator<A>
public class EnumerationIterator<A>
- extends NextThriterator<A>
- Author:
- flbulgarelli
EnumerationIterator
public EnumerationIterator(@NonNull
Enumeration<? extends A> enumeration)
- Creates a new
EnumerationIterator
hasNext
public boolean hasNext()
- Description copied from interface:
Thriter
- Answers if the thriter has more elements, that is, if sending
Thriter.advanceNext() would not result in a NoSuchElementException
- Returns:
- if the
Thriter has more elements
nextImpl
protected A nextImpl()
- Specified by:
nextImpl in class NextThriterator<A>
toString
public String toString()
- Overrides:
toString in class Object