com.generationjava.collections
Class SortedIterator

java.lang.Object
  extended bycom.generationjava.collections.SortedIterator
All Implemented Interfaces:
Iterator

public class SortedIterator
extends Object
implements Iterator

An Iterator which can be sorted.


Constructor Summary
SortedIterator(Iterator iterator)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 void sort()
           
 void sort(Comparator cmp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedIterator

public SortedIterator(Iterator iterator)
Method Detail

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.