|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibatis.sqlmap.engine.cache.CacheKey
Hash value generator for cache keys
| Field Summary | |
private long |
checksum
|
private int |
count
|
private static int |
DEFAULT_HASHCODE
|
private static int |
DEFAULT_MULTIPLYER
|
private int |
hashcode
|
private int |
multiplier
|
| 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 |
| Field Detail |
private static final int DEFAULT_MULTIPLYER
private static final int DEFAULT_HASHCODE
private int multiplier
private int hashcode
private long checksum
private int count
| Constructor Detail |
public CacheKey()
public CacheKey(int initialNonZeroOddNumber)
initialNonZeroOddNumber - - the hashcode to use
public CacheKey(int initialNonZeroOddNumber,
int multiplierNonZeroOddNumber)
initialNonZeroOddNumber - - the hashcode to usemultiplierNonZeroOddNumber - - the multiplier to use| Method 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 | ||||||||||