com.ibatis.sqlmap.engine.cache
Class CacheKey

java.lang.Object
  extended by com.ibatis.sqlmap.engine.cache.CacheKey

public class CacheKey
extends java.lang.Object

Hash value generator for cache keys


构造器摘要
CacheKey()
          Default constructor
CacheKey(int initialNonZeroOddNumber)
          Constructor that supplies an initial hashcode
CacheKey(int initialNonZeroOddNumber, int multiplierNonZeroOddNumber)
          Costructor that supplies an initial hashcode and multiplier
 
方法摘要
 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
 
类方法继承: java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造器详细信息

CacheKey

public CacheKey()
Default constructor


CacheKey

public CacheKey(int initialNonZeroOddNumber)
Constructor that supplies an initial hashcode

参数:
initialNonZeroOddNumber - - the hashcode to use

CacheKey

public CacheKey(int initialNonZeroOddNumber,
                int multiplierNonZeroOddNumber)
Costructor that supplies an initial hashcode and multiplier

参数:
initialNonZeroOddNumber - - the hashcode to use
multiplierNonZeroOddNumber - - the multiplier to use
方法详细信息

update

public CacheKey update(int x)
Updates this object with new information based on an int value

参数:
x - - the int value
返回:
the cache key

update

public CacheKey update(java.lang.Object object)
Updates this object with new information based on an object

参数:
object - - the object
返回:
the cachekey

equals

public boolean equals(java.lang.Object object)
重写:
equals in class java.lang.Object

hashCode

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

toString

public java.lang.String toString()
重写:
toString in class java.lang.Object