Class ObservableHashMap.Entry<K,V>

java.lang.Object
com.tangosol.util.Base
com.tangosol.util.SafeHashMap.Entry<K,V>
com.tangosol.util.ObservableHashMap.Entry<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map.Entry<K,V>
Enclosing class:
ObservableHashMap<K,V>

protected class ObservableHashMap.Entry<K,V> extends SafeHashMap.Entry<K,V>
A holder for a cached value.
Author:
cp 2000.12.12 (StmtCacheValue), cp 2001.04.19
See Also:
  • Constructor Details

    • Entry

      protected Entry()
  • Method Details

    • onAdd

      protected void onAdd()
      This method is invoked when the containing Map has actually added this Entry to itself.
      Overrides:
      onAdd in class SafeHashMap.Entry<K,V>
    • setValue

      public V setValue(V oValue)
      Update the cached value.
      Specified by:
      setValue in interface Map.Entry<K,V>
      Overrides:
      setValue in class SafeHashMap.Entry<K,V>
      Parameters:
      oValue - the new value to cache
      Returns:
      the old cache value
    • onRemove

      protected void onRemove()
      Called to inform the Entry that it has been removed.