|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.HashCodeComparator
A hash code comparator. This class compares the hash codes of two objects.
Constructor Summary | |
HashCodeComparator()
Construct a new HashCodeComparator . |
Method Summary | |
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare the hash codes of two objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HashCodeComparator()
HashCodeComparator
.
Method Detail |
public int compare(java.lang.Object a, java.lang.Object b)
hashCode()
is performed on both objects, and then the
resulting integers are compared.
compare
in interface Comparator
a
- The first object.b
- The second object.
0
if the objects are equal, -1
if a
is less than b
, and 1
if a
is greater than b
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |