Class Container<E>

All Implemented Interfaces:
IContainer<E>, INotifier, INotifier.INotifier2, IDeactivateable, ILifecycle, ILifecycle.DeferrableActivation
Direct Known Subclasses:
ModifiableContainer, Registry

public abstract class Container<E> extends ShareableLifecycle implements IContainer<E>
An abstract base implementation of a container with a lifecycle.
Author:
Eike Stepper
  • Constructor Details

    • Container

      public Container()
    • Container

      public Container(boolean shareable)
      Since:
      3.3
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface IContainer<E>
    • fireEvent

      public void fireEvent(IEvent event)
      Overrides:
      fireEvent in class Notifier
    • fireContainerEvent

      public void fireContainerEvent(E element, IContainerDelta.Kind kind)
    • fireElementAddedEvent

      public void fireElementAddedEvent(E element)
    • fireElementRemovedEvent

      public void fireElementRemovedEvent(E element)
    • fireContainerEvent

      public void fireContainerEvent(E[] elements, IContainerDelta.Kind kind)
      Since:
      2.0
    • fireElementsAddedEvent

      public void fireElementsAddedEvent(E[] elements)
      Since:
      2.0
    • fireElementsRemovedEvent

      public void fireElementsRemovedEvent(E[] elements)
      Since:
      2.0
    • fireContainerEvent

      public void fireContainerEvent(List<IContainerDelta<E>> deltas)
    • newContainerEvent

      protected SingleDeltaContainerEvent<E> newContainerEvent(E element, IContainerDelta.Kind kind)
    • newContainerEvent

      protected ContainerEvent<E> newContainerEvent()