ccs.utils
Class HashKey

java.lang.Object
  extended by ccs.utils.HashKey

public class HashKey
extends java.lang.Object

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

hashvalue

protected int hashvalue
Constructor Detail

HashKey

public HashKey(int hashvalue)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object