net.sf.staccatocommons.iterators.thriter
Class NextThriterator<A>
java.lang.Object
net.sf.staccatocommons.iterators.AbstractUnmodifiableIterator<A>
net.sf.staccatocommons.iterators.thriter.AbstractThriterator<A>
net.sf.staccatocommons.iterators.thriter.NextThriterator<A>
- All Implemented Interfaces:
- Iterator<A>, EmptyAware, Thriter<A>, Thriterator<A>
- Direct Known Subclasses:
- EnumerationIterator, IteratorThriterator
public abstract class NextThriterator<A>
- extends AbstractThriterator<A>
- Author:
- flbulgarelli
|
Method Summary |
void |
advanceNext()
Advances to the thriter to the position of the next element. |
A |
current()
Answers element at the current position of this Thriter. |
A |
next()
|
protected abstract A |
nextImpl()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.staccatocommons.iterators.thriter.Thriter |
hasNext |
NextThriterator
public NextThriterator()
advanceNext
public final void advanceNext()
- Description copied from interface:
Thriter
- Advances to the thriter to the position of the next element.
next
public final A next()
nextImpl
protected abstract A nextImpl()
current
public final A current()
- Description copied from interface:
Thriter
- Answers element at the current position of this
Thriter. Result of
this method if Thriter.advanceNext() was never evaluated before is
undefined.
- Returns:
- the current element