Class CacheKey

java.lang.Object
com.ibatis.sqlmap.engine.cache.CacheKey
All Implemented Interfaces:
Serializable, Cloneable

public class CacheKey extends Object implements Cloneable, Serializable
Hash value generator for cache keys.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    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

    Modifier and Type
    Method
    Description
     
    boolean
    equals(Object object)
     
    int
     
     
    update(int x)
    Updates this object with new information based on an int value.
    update(Object object)
    Updates this object with new information based on an object.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 use
      multiplierNonZeroOddNumber - - the multiplier to use
  • Method Details