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

public class ArrayThriterator<A>
extends IndexedThriterator<A>

Author:
flbulgarelli

Constructor Summary
ArrayThriterator(A[] array)
          Creates a new ArrayThriterator
 
Method Summary
protected  A elementAt(int position)
           
protected  int length()
           
 String toString()
           
 
Methods inherited from class net.sf.staccatocommons.iterators.IndexedThriterator
advanceNext, current, hasNext
 
Methods inherited from class net.sf.staccatocommons.iterators.thriter.AdvanceThriterator
next
 
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, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
remove
 

Constructor Detail

ArrayThriterator

public ArrayThriterator(@NonNull
                        A[] array)
Creates a new ArrayThriterator

Method Detail

elementAt

protected A elementAt(int position)
Specified by:
elementAt in class IndexedThriterator<A>

length

protected int length()
Specified by:
length in class IndexedThriterator<A>

toString

public String toString()
Overrides:
toString in class Object


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