com.generationjava.collections
Class SortedIterator
java.lang.Object
com.generationjava.collections.SortedIterator
- All Implemented Interfaces:
- Iterator
- public class SortedIterator
- extends Object
- implements Iterator
An Iterator which can be sorted.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedIterator
public SortedIterator(Iterator iterator)
next
public Object next()
- Specified by:
next in interface Iterator
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator
remove
public void remove()
- Specified by:
remove in interface Iterator
sort
public void sort(Comparator cmp)
sort
public void sort()
Copyright © 2000-2005 OSJava. All Rights Reserved.