com.vaadin.collaborationengine.
Class ListChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.collaborationengine.ListChangeEvent
-
All Implemented Interfaces:
public class ListChangeEvent extends EventObject
Event that is fired when the value in a collaboration list changes.
Author:
Vaadin Ltd
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Modifier and Type Method and Description <T> Optional<T>
getAddedItem(Class<T> type)
Gets the added item as an instance of the given class.
<T> Optional<T>
getAddedItem(com.fasterxml.jackson.core.type.TypeReference<T> type)
Gets the added item as an instance of the given type reference.
CollaborationList
getSource()
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Method Detail
-
getSource
public CollaborationList getSource()
Overrides:
getSource
in classEventObject
-
getAddedItem
public <T> Optional<T> getAddedItem(Class<T> type)
Gets the added item as an instance of the given class.
Type Parameters:
T
- the type of the class given as thetype
argumentParameters:
type
- the class of the expected type of the returned instanceReturns:
the added item
-
getAddedItem
public <T> Optional<T> getAddedItem(com.fasterxml.jackson.core.type.TypeReference<T> type)
Gets the added item as an instance of the given type reference.
Type Parameters:
T
- the type of the reference given as thetype
argumentParameters:
type
- the expected type reference of the returned instanceReturns:
the added item
-
-