net.sf.staccatocommons.iterators.thriter
Class IteratorThriterator<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.thriter.IteratorThriterator<A>
- All Implemented Interfaces:
- Iterator<A>, EmptyAware, Thriter<A>, Thriterator<A>
public class IteratorThriterator<A>
- extends NextThriterator<A>
- Author:
- flbulgarelli
IteratorThriterator
public IteratorThriterator(@NonNull
Iterator<? extends A> iter)
- Creates a new
IteratorThriterator
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
public A nextImpl()
- Specified by:
nextImpl in class NextThriterator<A>
toString
public String toString()
- Overrides:
toString in class Object