Class CacheEntry<KeyType,​ValueType>


  • public class CacheEntry<KeyType,​ValueType>
    extends Object
    A single entry in the cache which holds the cache value and unique key for lookup.
    • Constructor Detail

      • CacheEntry

        public CacheEntry​(KeyType key,
                          ValueType value)
        A single entry in the cache which holds the cache value and unique key for lookup.
        Parameters:
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key
    • Method Detail

      • getKey

        public KeyType getKey()
        Returns the key stored
        Returns:
        key stored
      • getValue

        public ValueType getValue()
        Returns the value stored
        Returns:
        value stored
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object