org.stringtree.util.sort
Class SortedIteratorIterator

java.lang.Object
  extended by org.stringtree.util.iterator.AbstractIterator
      extended by org.stringtree.util.sort.SortedIteratorIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
UniqueSortedIteratorIterator

public class SortedIteratorIterator
extends AbstractIterator

An Iterator which is a sorted version of another Iterator


Field Summary
protected  java.util.Vector elements
           
protected  java.util.Iterator it
           
 
Constructor Summary
  SortedIteratorIterator(java.util.Iterator it)
           
protected SortedIteratorIterator(java.util.Iterator it, boolean unique)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 
Methods inherited from class org.stringtree.util.iterator.AbstractIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

protected java.util.Vector elements

it

protected java.util.Iterator it
Constructor Detail

SortedIteratorIterator

protected SortedIteratorIterator(java.util.Iterator it,
                                 boolean unique)

SortedIteratorIterator

public SortedIteratorIterator(java.util.Iterator it)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in class AbstractIterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Specified by:
next in class AbstractIterator