net.sf.staccatocommons.iterators
Class CharSequenceThriterator

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

public class CharSequenceThriterator
extends IndexedThriterator<Character>

Author:
flbulgarelli

Constructor Summary
CharSequenceThriterator(CharSequence charSequence)
          Creates a new CharSequenceThriterator
 
Method Summary
protected  Character 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

CharSequenceThriterator

public CharSequenceThriterator(@NonNull
                               CharSequence charSequence)
Creates a new CharSequenceThriterator

Parameters:
charSequence - the sequence to wrap
Method Detail

length

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

elementAt

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

toString

public String toString()
Overrides:
toString in class Object


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