public abstract class AbstractIntComparator extends Object implements IntComparator
To create a type-specific comparator you need both a method comparing primitive types and a method comparing objects. However, if you have the first one you can just inherit from this class and get for free the second one.
Comparator| Modifier and Type | Method and Description |
|---|---|
int |
compare(Integer ok1,
Integer ok2) |
abstract int |
compare(int k1,
int k2)
Compares the given primitive types.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(Integer ok1, Integer ok2)
compare in interface Comparator<Integer>public abstract int compare(int k1,
int k2)
IntComparatorcompare in interface IntComparatorComparator