com.ibatis.sqlmap.engine.cache

Class CacheKey

public class CacheKey extends Object

Hash value generator for cache keys
Constructor Summary
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
Method Summary
booleanequals(Object object)
inthashCode()
StringtoString()
CacheKeyupdate(int x)
Updates this object with new information based on an int value
CacheKeyupdate(Object object)
Updates this object with new information based on an object

Constructor Detail

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 use multiplierNonZeroOddNumber - the multiplier to use

Method Detail

equals

public boolean equals(Object object)

hashCode

public int hashCode()

toString

public String toString()

update

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

Parameters: x - the int value

Returns: the cache key

update

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

Parameters: object - the object

Returns: the cachekey

Copyright © 2011. All Rights Reserved.