Class SimpleCache.CachedValue

java.lang.Object
net.solarnetwork.util.CachedResult<V>
net.solarnetwork.central.support.SimpleCache.CachedValue
All Implemented Interfaces:
javax.cache.Cache.Entry<K,V>
Enclosing class:
SimpleCache<K,V>

public final class SimpleCache.CachedValue extends net.solarnetwork.util.CachedResult<V> implements javax.cache.Cache.Entry<K,V>
A cached value.
  • Method Details

    • getKey

      public K getKey()
      Specified by:
      getKey in interface javax.cache.Cache.Entry<K,V>
    • getValue

      public V getValue()
      Specified by:
      getValue in interface javax.cache.Cache.Entry<K,V>
    • unwrap

      public <T> T unwrap(Class<T> clazz)
      Specified by:
      unwrap in interface javax.cache.Cache.Entry<K,V>
    • equals

      public boolean equals(Object obj)
      Compares the getKey() and CachedResult.getResult() values against another cached object's values.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object