|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.core.HashComparitor
The most simple and fastest Comparitor
. The comparison
performed by a HashComparitor
is simly a comparison of
the hash codes of the objects to be compared.
Fields inherited from interface gishur.core.Comparitor |
BIGGER, EQUAL, SMALLER |
Constructor Summary | |
HashComparitor()
|
Method Summary | |
short |
compare(java.lang.Object o1,
java.lang.Object o2)
Overrides Comparitor.compare(java.lang.Object, java.lang.Object) . |
java.lang.String |
toString()
Overrides java.lang.Object.toString() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HashComparitor()
Method Detail |
public java.lang.String toString()
java.lang.Object.toString()
toString
in class java.lang.Object
Object.toString()
public short compare(java.lang.Object o1, java.lang.Object o2)
Comparitor.compare(java.lang.Object, java.lang.Object)
. If the argument-objects are instances
of KeyValueHolder
-objects, their keys' hash codes will be compared.compare
in interface Comparitor
o1,o2
- objects to compareComparitor.SMALLER
, Comparitor.EQUAL
or Comparitor.BIGGER
)Comparitor.compare(java.lang.Object, java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |