public interface Comparator
Modifier and Type | Method | Description |
---|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2) |
Returns a number representing the ordering relationship that
the two objects have.
|
boolean |
equals(java.lang.Object o1,
java.lang.Object o2) |
Returns true if the two objects are equal.
|
int compare(java.lang.Object o1, java.lang.Object o2)
boolean equals(java.lang.Object o1, java.lang.Object o2)