utils
Class IntegerComparator
java.lang.Object
|
+--utils.IntegerComparator
- public class IntegerComparator
- extends java.lang.Object
- implements java.util.Comparator
Comparator Implementation for keys of type Integer.
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
boolean |
equals(java.lang.Object obj)
|
boolean |
isComparable(java.lang.Object a)
|
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
IntegerComparator
public IntegerComparator()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
- compare in interface java.util.Comparator
equals
public boolean equals(java.lang.Object obj)
- Specified by:
- equals in interface java.util.Comparator
- Overrides:
- equals in class java.lang.Object
isComparable
public boolean isComparable(java.lang.Object a)