CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.util
Class ConverterCollections.ConverterMapEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.tangosol.util.MapEvent
          extended by com.tangosol.util.ConverterCollections.ConverterMapEvent
All Implemented Interfaces:
Serializable
Enclosing class:
ConverterCollections

public static class ConverterCollections.ConverterMapEvent
extends MapEvent

A Converter MapEvent views an underlying MapEvent through a set of key and value Converters.


Field Summary
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.
 
Fields inherited from class com.tangosol.util.MapEvent
ENTRY_DELETED, ENTRY_INSERTED, ENTRY_UPDATED, m_nId, m_oKey, m_oValueNew, m_oValueOld
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConverterCollections.ConverterMapEvent(ObservableMap map, MapEvent event, Converter convKey, Converter convVal)
          Construct the ConverterMapEvent.
 
Method Summary
 Object getKey()
          Return a key assosiated with this event.
 Object getNewValue()
          Return a new value assosiated with this event.
 Object getOldValue()
          Return an old value assosiated with this event.
 
Methods inherited from class com.tangosol.util.MapEvent
dispatch, dispatch, dispatch, getDescription, getDescription, getId, getMap, toString
 
Methods inherited from class java.util.EventObject
getSource
 

Field Detail

m_event

protected MapEvent m_event
The underlying MapEvent.


m_convKey

protected Converter m_convKey
The Converter to view the underlying MapEvent's key.


m_convVal

protected Converter m_convVal
The Converter to view the underlying MapEvent's value.

Constructor Detail

ConverterCollections.ConverterMapEvent

public ConverterCollections.ConverterMapEvent(ObservableMap map,
                                              MapEvent event,
                                              Converter convKey,
                                              Converter convVal)
Construct the ConverterMapEvent.

Parameters:
event - the underlying MapEvent
map - the new event's source
convKey - the Converter to view the underlying MapEvent's key
convVal - the Converter to view the underlying MapEvent's values
Method Detail

getKey

public Object getKey()
Return a key assosiated with this event.

Overrides:
getKey in class MapEvent
Returns:
a key

getOldValue

public Object getOldValue()
Return an old value assosiated with this event.

The old value represents a value deleted from or updated in a map. It is always null for "insert" notifications.

Overrides:
getOldValue in class MapEvent
Returns:
an old value

getNewValue

public Object getNewValue()
Return a new value assosiated with this event.

The new value represents a new value inserted into or updated in a map. It is always null for "delete" notifications.

Overrides:
getNewValue in class MapEvent
Returns:
a new value

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation