public static class ConverterCollections.ConverterMapEvent extends CacheEvent
| Modifier and Type | Class and Description |
|---|---|
protected class |
ConverterCollections.ConverterMapEvent.ConverterMapEventBinaryEntry
ConverterMapEventBinaryEntry provides both the Map Entry and the BinaryEntry interfaces to the information encapsulated inside the ConverterMapEvent.
|
protected class |
ConverterCollections.ConverterMapEvent.ConverterMapEventEntry
ConverterMapEventEntry provides the Map Entry interface to the information encapsulated inside the ConverterMapEvent.
|
CacheEvent.TransformationState| Modifier and Type | Field and Description |
|---|---|
protected BackingMapManagerContext |
m_context
The BackingMapManagerContext to use for extracting binary values.
|
protected Converter |
m_convKey
The Converter to view the underlying MapEvent's key.
|
protected Converter |
m_convVal
The Converter to view the underlying MapEvent's value.
|
protected MapEvent |
m_event
The underlying MapEvent.
|
static Object |
NO_VALUE
Tag object indicating that a corresponding value has not been converted.
|
m_fSynthetic, m_transformStateENTRY_DELETED, ENTRY_INSERTED, ENTRY_UPDATED, m_nId, m_oKey, m_oValueNew, m_oValueOldsource| Constructor and Description |
|---|
ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal)
Construct a ConverterMapEvent.
|
ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal, BackingMapManagerContext context)
Construct a ConverterMapEvent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearConverted()
Remove any cached conversions of the key or values.
|
BackingMapManagerContext |
getContext()
Get the BackingMapManagerContext if one was provided.
|
Converter |
getConverterKeyUp()
Return the Converter used to view the underlying MapEvent's key through.
|
Converter |
getConverterValueUp()
Return the Converter used to view the underlying MapEvent's value through.
|
Object |
getKey()
Return a key associated with this event.
|
MapEvent |
getMapEvent()
Return the underlying MapEvent.
|
Map.Entry |
getNewEntry()
Return a Map Entry that represents the state of the Entry after the change occurred that generated this event.
|
Object |
getNewValue()
Return a new value associated with this event.
|
Map.Entry |
getOldEntry()
Return a Map Entry that represents the state of the Entry before the change occurred that generated this event.
|
Object |
getOldValue()
Return an old value associated with this event.
|
boolean |
isKeyConverted()
Check if the event's key has been converted.
|
boolean |
isNewValueConverted()
Check if the event's new value has been converted.
|
boolean |
isOldValueConverted()
Check if the event's old value has been converted.
|
void |
setKey(Object oKey)
Set the cached converted old value associated with this event.
|
void |
setNewValue(Object oValue)
Set the cached converted new value associated with this event.
|
void |
setOldValue(Object oValue)
Set the cached converted old value associated with this event.
|
getDescription, getTransformationState, isSyntheticdispatch, dispatch, dispatch, getDescription, getId, getMap, toStringgetSourcepublic static final Object NO_VALUE
protected MapEvent m_event
protected Converter m_convKey
protected Converter m_convVal
protected BackingMapManagerContext m_context
public ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal)
event - the underlying MapEventmap - the new event's sourceconvKey - the Converter to view the underlying MapEvent's keyconvVal - the Converter to view the underlying MapEvent's valuespublic ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal, BackingMapManagerContext context)
event - the underlying MapEventmap - the new event's sourceconvKey - the Converter to view the underlying MapEvent's keyconvVal - the Converter to view the underlying MapEvent's valuescontext - the BackingMapManagerContext necessary to emulate the BinaryEntry interfacepublic Object getKey()
public Object getOldValue()
The old value represents a value deleted from or updated in a map. It is always null for "insert" notifications.
getOldValue in class MapEventpublic Object getNewValue()
The new value represents a new value inserted into or updated in a map. It is always null for "delete" notifications.
getNewValue in class MapEventpublic Map.Entry getOldEntry()
getOldEntry in class MapEventpublic Map.Entry getNewEntry()
getNewEntry in class MapEventpublic MapEvent getMapEvent()
public BackingMapManagerContext getContext()
public Converter getConverterKeyUp()
public Converter getConverterValueUp()
public void setKey(Object oKey)
oKey - the converted key valuepublic void setOldValue(Object oValue)
oValue - the new converted "old" valuepublic void setNewValue(Object oValue)
oValue - the new converted "new" valuepublic boolean isKeyConverted()
public boolean isOldValueConverted()
public boolean isNewValueConverted()
public void clearConverted()