|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.sqlmap.engine.cache.CacheKey
Hash value generator for cache keys
Constructor Summary | |
CacheKey()
Default constructor |
|
CacheKey(int initialNonZeroOddNumber)
Costructor that supplies an initial hashcode |
|
CacheKey(int initialNonZeroOddNumber,
int multiplierNonZeroOddNumber)
Costructor that supplies an initial hashcode and multiplier |
Method Summary | |
boolean |
equals(java.lang.Object object)
|
int |
hashCode()
|
java.lang.String |
toString()
|
CacheKey |
update(int x)
Updates this object with new information based on an int value |
CacheKey |
update(java.lang.Object object)
Updates this object with new information based on an object |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CacheKey()
public CacheKey(int initialNonZeroOddNumber)
initialNonZeroOddNumber
- - the hashcode to usepublic CacheKey(int initialNonZeroOddNumber, int multiplierNonZeroOddNumber)
initialNonZeroOddNumber
- - the hashcode to usemultiplierNonZeroOddNumber
- - the multiplier to useMethod Detail |
public CacheKey update(int x)
x
- - the int value
public CacheKey update(java.lang.Object object)
object
- - the object
public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |