net.sf.staccatocommons.iterators.delayed
Class DelayedAppendIterator<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.AdvanceThriterator<A>
              extended by net.sf.staccatocommons.iterators.AppendThriterator<A>
                  extended by net.sf.staccatocommons.iterators.delayed.DelayedAppendIterator<A>
All Implemented Interfaces:
Iterator<A>, EmptyAware, Thriter<A>, Thriterator<A>

public class DelayedAppendIterator<A>
extends AppendThriterator<A>

Author:
flbulgarelli

Constructor Summary
DelayedAppendIterator(Thriter<? extends A> iterator, Thunk<A> element)
          Creates a new DelayedAppendIterator
 
Method Summary
protected  Thunk<A> elementThunk()
           
protected  A elementValue()
           
 
Methods inherited from class net.sf.staccatocommons.iterators.AppendThriterator
advanceNext, current, delayedCurrent, hasNext, toString
 
Methods inherited from class net.sf.staccatocommons.iterators.thriter.AdvanceThriterator
next
 
Methods inherited from class net.sf.staccatocommons.iterators.thriter.AbstractThriterator
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, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
remove
 

Constructor Detail

DelayedAppendIterator

public DelayedAppendIterator(Thriter<? extends A> iterator,
                             Thunk<A> element)
Creates a new DelayedAppendIterator

Method Detail

elementValue

protected A elementValue()
Overrides:
elementValue in class AppendThriterator<A>

elementThunk

protected Thunk<A> elementThunk()
Overrides:
elementThunk in class AppendThriterator<A>


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