|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Comparator<T>
Comparator is used to compare two objects to determine their ordering in respect to each other.
| Method Summary | |
|---|---|
int |
compare(T object1,
T object2)
Compare the two objects to determine the relative ordering. |
boolean |
equals(Object object)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
| Method Detail |
|---|
int compare(T object1,
T object2)
object1 - an Object to compareobject2 - an Object to compare
ClassCastException - when objects are not the correct typeboolean equals(Object object)
equals in class Objectobject - Object the object to compare with this object.
true if the object is the same as this
object false if it is different from this object.Object.hashCode()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||