org.stringtree.util.sort
Class SortedIteratorIterator
java.lang.Object
org.stringtree.util.iterator.AbstractIterator
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
|
Method Summary |
boolean |
hasNext()
|
java.lang.Object |
next()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elements
protected java.util.Vector elements
it
protected java.util.Iterator it
SortedIteratorIterator
protected SortedIteratorIterator(java.util.Iterator it,
boolean unique)
SortedIteratorIterator
public SortedIteratorIterator(java.util.Iterator it)
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