|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.utils.IteratorComparator<T>
public class IteratorComparator<T>
INTERNAL: Comparator for Iterators. Compares each element in turn until the end of one Iterator is reached. Then, if one Iterator contains fewer elements than the other, it is ordered first.
Constructor Summary | |
---|---|
IteratorComparator(java.util.Comparator<T> elementComparator)
|
Method Summary | |
---|---|
int |
compare(java.util.Iterator<T> it1,
java.util.Iterator<T> it2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public IteratorComparator(java.util.Comparator<T> elementComparator)
Method Detail |
---|
public int compare(java.util.Iterator<T> it1, java.util.Iterator<T> it2)
compare
in interface java.util.Comparator<java.util.Iterator<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |