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>
Empty implementation ofOortList.ElementListener
. -
Method Summary
Modifier and Type Method Description void
onAdded(OortObject.Info<List<E>> info, List<E> elements)
Callback method invoked when elements are added to the entity list.void
onRemoved(OortObject.Info<List<E>> info, List<E> elements)
Callback method invoked when elements are removed from the entity list.
-
Method Details
-
onAdded
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
Callback method invoked when elements are removed from the entity list.- Parameters:
info
- theOortObject.Info
that was changed by the removalelements
- the elements removed
-