Package org.cometd.oort
Interface OortList.ElementListener<E>
-
- Type Parameters:
E
- the element type
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
OortList.ElementListener.Adapter
public static interface OortList.ElementListener<E> extends EventListener
Listener for element events that update the entity list, either locally or remotely.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
OortList.ElementListener.Adapter<E>
Deprecated.useOortList.ElementListener
instead
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onAdded(OortObject.Info<List<E>> info, List<E> elements)
Callback method invoked when elements are added to the entity list.default void
onRemoved(OortObject.Info<List<E>> info, List<E> elements)
Callback method invoked when elements are removed from the entity list.
-
-
-
Method Detail
-
onAdded
default void onAdded(OortObject.Info<List<E>> info, List<E> elements)
Callback method invoked when elements are added to the entity list.- Parameters:
info
- theOortObject.Info
that was changed by the additionelements
- the elements added
-
onRemoved
default void onRemoved(OortObject.Info<List<E>> info, List<E> elements)
Callback method invoked when elements are removed from the entity list.- Parameters:
info
- theOortObject.Info
that was changed by the removalelements
- the elements removed
-
-