Skip navigation links
com.tangosol.util
Class ObservableHashMap.Entry
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.SafeHashMap.Entry
com.tangosol.util.ObservableHashMap.Entry
- All Implemented Interfaces:
- Serializable, Cloneable, Map.Entry
- Enclosing class:
- ObservableHashMap
-
protected class ObservableHashMap.Entry
- extends SafeHashMap.Entry
A holder for a cached value.
- Author:
- cp 2000.12.12 (StmtCacheValue), cp 2001.04.19
Method Summary |
protected void |
onAdd()
This method is invoked when the containing Map has actually added this Entry to itself. |
protected void |
onRemove()
Called to inform the Entry that it has been removed. |
Object |
setValue(Object oValue)
Update the cached value. |
ObservableHashMap.Entry
protected ObservableHashMap.Entry()
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
setValue
public Object setValue(Object oValue)
- Update the cached value.
-
- Specified by:
setValue
in interface Map.Entry
- Overrides:
setValue
in class SafeHashMap.Entry
-
- 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.
Skip navigation links
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.