Class CacheKey


  • public class CacheKey
    extends java.lang.Object
    A general purpose cache key class that represents a composite key using an array of values
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      static CacheKey key​(java.lang.Object... values)
      A factory method for creating CacheKey instances from one or more values
      java.lang.String toString()  
      java.lang.Object[] values()
      Get a copy of the values array used by this cache key.
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public java.lang.Object[] values()
        Get a copy of the values array used by this cache key.
        Returns:
        a copy of the values array used by this cache key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • key

        public static CacheKey key​(java.lang.Object... values)
        A factory method for creating CacheKey instances from one or more values
        Parameters:
        values - the values
        Returns:
        the CacheKey instance