com.vaadin.collaborationengine.

Class ListChangeEvent

  • All Implemented Interfaces:

    Serializable


    public class ListChangeEvent
    extends EventObject

    Event that is fired when the value in a collaboration list changes.

    Author:

    Vaadin Ltd

    See Also:

    Serialized Form

    • Method Detail

      • 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 the type argument

        Parameters:

        type - the class of the expected type of the returned instance

        Returns:

        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 the type argument

        Parameters:

        type - the expected type reference of the returned instance

        Returns:

        the added item