Package com.ibatis.sqlmap.engine.cache
Class CacheKey
java.lang.Object
com.ibatis.sqlmap.engine.cache.CacheKey
- All Implemented Interfaces:
Serializable
,Cloneable
Hash value generator for cache keys.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CacheKey
public CacheKey()Default constructor. -
CacheKey
public CacheKey(int initialNonZeroOddNumber) Constructor that supplies an initial hashcode.- Parameters:
initialNonZeroOddNumber
- - the hashcode to use
-
CacheKey
public CacheKey(int initialNonZeroOddNumber, int multiplierNonZeroOddNumber) Costructor that supplies an initial hashcode and multiplier.- Parameters:
initialNonZeroOddNumber
- - the hashcode to usemultiplierNonZeroOddNumber
- - the multiplier to use
-
-
Method Details
-
update
Updates this object with new information based on an int value.- Parameters:
x
- - the int value- Returns:
- the cache key
-
update
Updates this object with new information based on an object.- Parameters:
object
- - the object- Returns:
- the cachekey
-
equals
-
hashCode
public int hashCode() -
toString
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-