Class Container<E>
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.lifecycle.ShareableLifecycle
org.eclipse.net4j.util.container.Container<E>
- Type Parameters:
E- the element type
- All Implemented Interfaces:
IContainer<E>, INotifier, INotifier.INotifier2, IDeactivateable, ILifecycle, ILifecycle.DeferrableActivation
- Direct Known Subclasses:
ContainerElementList, ModifiableContainer, Registry
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class Notifier
Notifier.CancelationNested classes/interfaces inherited from interface IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>Nested classes/interfaces inherited from interface ILifecycle
ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface INotifier
INotifier.INotifier2 -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfireContainerEvent(E[] elements, IContainerDelta.Kind kind) voidfireContainerEvent(E element, IContainerDelta.Kind kind) voidfireContainerEvent(List<IContainerDelta<E>> deltas) voidfireElementAddedEvent(E element) voidfireElementRemovedEvent(E element) voidfireElementsAddedEvent(E[] elements) voidfireElementsRemovedEvent(E[] elements) voidbooleanisEmpty()protected ContainerEvent<E> protected SingleDeltaContainerEvent<E> newContainerEvent(E element, IContainerDelta.Kind kind) Methods inherited from class Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doCancelActivation, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringMethods inherited from class Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IContainer
getElementsMethods inherited from interface INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
Container
public Container() -
Container
public Container(boolean shareable) - Since:
- 3.3
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceIContainer<E>
-
fireEvent
-
fireContainerEvent
-
fireElementAddedEvent
-
fireElementRemovedEvent
-
fireContainerEvent
- Since:
- 2.0
-
fireElementsAddedEvent
- Since:
- 2.0
-
fireElementsRemovedEvent
- Since:
- 2.0
-
fireContainerEvent
-
newContainerEvent
-
newContainerEvent
-