Package com.tangosol.util
Interface MapTrigger.Entry<K,V>
-
- All Superinterfaces:
InvocableMap.Entry<K,V>
,Map.Entry<K,V>
,QueryMap.Entry<K,V>
- All Known Implementing Classes:
AbstractKeyBasedMap.EntrySet.Entry
,BackingMapBinaryEntry
,BinaryMap.Entry
,InvocableMapHelper.RoutingBinaryEntry
,InvocableMapHelper.RoutingMapTriggerEntry
,InvocableMapHelper.SimpleEntry
,ObservableSplittingBackingCache.EntrySet.Entry
,OpenHashMap.EntrySet.Entry
,ReadWriteBackingMap.Entry
,SerializationCache.EntrySet.Entry
,SimpleElement.AttributeMap.Entry
,SimpleMapEntry
- Enclosing interface:
- MapTrigger<K,V>
public static interface MapTrigger.Entry<K,V> extends InvocableMap.Entry<K,V>
A MapTrigger Entry represents a pending change to an Entry that is about to committed to the underlying Map. The methods inherited fromInvocableMap.Entry
provide both the pending state and the ability to alter that state. The original state of the Entry can be obtained using thegetOriginalValue()
andisOriginalPresent()
methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
getOriginalValue()
Determine the value that existed before the start of the mutating operation that is being evaluated by the trigger.boolean
isOriginalPresent()
Determine whether or not the Entry existed before the start of the mutating operation that is being evaluated by the trigger.-
Methods inherited from interface com.tangosol.util.InvocableMap.Entry
asBinaryEntry, getKey, getValue, getValue, getValue, isPresent, isSynthetic, remove, setValue, setValue, update
-
Methods inherited from interface com.tangosol.util.QueryMap.Entry
extract, extractFromKey, extractFromValue
-
-
-
-
Method Detail
-
getOriginalValue
V getOriginalValue()
Determine the value that existed before the start of the mutating operation that is being evaluated by the trigger.- Returns:
- the original value corresponding to this Entry; may be null if the value is null or if the Entry did not exist in the Map
-
isOriginalPresent
boolean isOriginalPresent()
Determine whether or not the Entry existed before the start of the mutating operation that is being evaluated by the trigger.- Returns:
- true iff this Entry was existent in the containing Map
-
-