public class MapChangeEvent extends EventObject
source
Constructor and Description |
---|
MapChangeEvent(CollaborationMap source,
MapChange change)
Creates a new map change event.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Gets the updated map key.
|
<T> T |
getOldValue(Class<T> type)
Gets the old value as an instance of the given class.
|
<T> T |
getOldValue(com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
Gets the old value as an instance corresponding to the given type
reference.
|
CollaborationMap |
getSource() |
<T> T |
getValue(Class<T> type)
Gets the new value as an instance of the given class.
|
<T> T |
getValue(com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
Gets the new value as an instance corresponding to the given type
reference.
|
toString
public MapChangeEvent(CollaborationMap source, MapChange change)
source
- the collaboration map for which the event is fired, not
null
change
- detail of the change, not null
public CollaborationMap getSource()
getSource
in class EventObject
public String getKey()
null
public <T> T getOldValue(Class<T> type)
T
- the type of the value from type
parameter, e.g.
String
type
- the expected type of the returned instancenull
if no value was present
previouslypublic <T> T getOldValue(com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
T
- the type reference of the value from typeRef
parameter, e.g. List>
typeRef
- the expected type reference of the returned instancenull
if no value was present
previouslypublic <T> T getValue(Class<T> type)
T
- the type of the value from type
parameter, e.g.
String
type
- the expected type of the returned instancenull
if the association was
removedpublic <T> T getValue(com.fasterxml.jackson.core.type.TypeReference<T> typeRef)
T
- the type reference of the value from `typeRef` parameter, e.g.
List>
typeRef
- the expected type reference of the returned instancenull
if the association was
removedCopyright © 2021. All rights reserved.