Package net.ontopia.utils
Class IteratorComparator<T>
java.lang.Object
net.ontopia.utils.IteratorComparator<T>
- All Implemented Interfaces:
Comparator<Iterator<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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
IteratorComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T>
-