Interface OortList.ElementListener<E>

Type Parameters:
E - the element type
All Superinterfaces:
EventListener
All Known Implementing Classes:
OortList.ElementListener.Adapter
Enclosing class:
OortList<E>

public static interface OortList.ElementListener<E>
extends EventListener
Listener for element events that update the entity list, either locally or remotely.
  • Method Details

    • onAdded

      void onAdded​(OortObject.Info<List<E>> info, List<E> elements)
      Callback method invoked when elements are added to the entity list.
      Parameters:
      info - the OortObject.Info that was changed by the addition
      elements - the elements added
    • onRemoved

      void onRemoved​(OortObject.Info<List<E>> info, List<E> elements)
      Callback method invoked when elements are removed from the entity list.
      Parameters:
      info - the OortObject.Info that was changed by the removal
      elements - the elements removed