|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.utils.HashKey
public class HashKey
An object with a fixed hash code. Usually you're better off supplying some
arbitrary object and letting Object.hashCode
do your job for you.
However, there are some special cases where you need to supply your own, but
have no other requirements.
Field Summary | |
---|---|
protected int |
hashvalue
|
Constructor Summary | |
---|---|
HashKey(int hashvalue)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int hashvalue
Constructor Detail |
---|
public HashKey(int hashvalue)
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |