Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.util
Interface MapTrigger.Entry

All Superinterfaces:
  InvocableMap.Entry, java.util.Map.Entry, QueryMap.Entry

Enclosing interface:
  MapTrigger

    public static interface MapTrigger.Entry

extends InvocableMap.Entry

A MapTrigger Entry represents a pending change to an Entry that is about to committed to the underlying Map. The methods inherited from `InvocableMap.Entry` provide both the pending state and the ability to alter that state. The original state of the Entry can be obtained using the `getOriginalValue()` and `isOriginalPresent()` methods.

Method Summary
`java.lang.Object` | `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
`getKey, getValue, isPresent, remove, setValue, setValue, update`

Methods inherited from interface com.tangosol.util.QueryMap.Entry
`extract`

Methods inherited from interface java.util.Map.Entry
`equals, hashCode`

Method Detail

### getOriginalValue

    java.lang.Object 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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.