public class ListChangeEvent extends EventObject
source
Modifier and Type | Method and Description |
---|---|
<T> Optional<T> |
getAddedItem(Class<T> type)
Deprecated.
This method is preserved for backwards compatibility from the
initial version when the only possible list change was to add
a new item to the end of the list.
|
<T> Optional<T> |
getAddedItem(com.fasterxml.jackson.core.type.TypeReference<T> type)
Deprecated.
This method is preserved for backwards compatibility from the
initial version when the only possible list change was to add
a new item to the end of the list.
|
<T> T |
getOldValue(Class<T> type)
Gets the old value of the list item affected by the change as instance of
the given class.
|
<T> T |
getOldValue(com.fasterxml.jackson.core.type.TypeReference<T> type)
Gets the old value of the list item affected by the change as instance
corresponding to the given type reference.
|
CollaborationList |
getSource() |
<T> T |
getValue(Class<T> type)
Gets the current value of the list item affected by the change as
instance of the given class.
|
<T> T |
getValue(com.fasterxml.jackson.core.type.TypeReference<T> type)
Gets the current value of the list item affected by the change as
instance corresponding to the given type reference.
|
toString
public CollaborationList getSource()
getSource
in class EventObject
public <T> T getValue(Class<T> type)
If the item was removed by the change, this method returns
null
and getOldValue(Class)
return the removed item
value.
T
- the type of the value from type
parameter, e.g.
String
type
- the expected type of the returned instancepublic <T> T getValue(com.fasterxml.jackson.core.type.TypeReference<T> type)
If the item was removed by the change, this method returns
null
and getOldValue(TypeReference)
return the
removed item value.
T
- the type reference of the value from type
parameter, e.g. List
type
- the expected type reference of the returned instancepublic <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 instancepublic <T> T getOldValue(com.fasterxml.jackson.core.type.TypeReference<T> type)
T
- the type reference of the value from type
parameter, e.g. List
type
- the expected type reference of the returned instance@Deprecated public <T> Optional<T> getAddedItem(Class<T> type)
T
- the type of the class given as the type
argumenttype
- the class of the expected type of the returned instance@Deprecated public <T> Optional<T> getAddedItem(com.fasterxml.jackson.core.type.TypeReference<T> type)
T
- the type of the reference given as the type
argumenttype
- the expected type reference of the returned instanceCopyright © 2022. All rights reserved.