|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Comparator is used to compare two objects to determine their ordering in respect to each other.
Method Summary | |
int |
compare(java.lang.Object object1,
java.lang.Object object2)
Compare the two objects to determine the relative ordering. |
boolean |
equals(java.lang.Object object)
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. |
Method Detail |
public int compare(java.lang.Object object1, java.lang.Object object2)
object1
- an Object to compareobject2
- an Object to compare
ClassCastException
- when objects are not the correct typepublic boolean equals(java.lang.Object object)
object
- 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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |