net.sf.staccatocommons.iterators.thriter
Class NextThriterator<A>

java.lang.Object
  extended by net.sf.staccatocommons.iterators.AbstractUnmodifiableIterator<A>
      extended by net.sf.staccatocommons.iterators.thriter.AbstractThriterator<A>
          extended by 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

Constructor Summary
NextThriterator()
           
 
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 net.sf.staccatocommons.iterators.thriter.AbstractThriterator
delayedCurrent, delayedNext, isEmpty
 
Methods inherited from class net.sf.staccatocommons.iterators.AbstractUnmodifiableIterator
remove
 
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
 
Methods inherited from interface java.util.Iterator
hasNext, remove
 

Constructor Detail

NextThriterator

public NextThriterator()
Method Detail

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


Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads