Package org.eclipse.net4j.util.container
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>
- All Implemented Interfaces:
IContainer<E>
,INotifier
,INotifier.INotifier2
,IDeactivateable
,ILifecycle
,ILifecycle.DeferrableActivation
- Direct Known Subclasses:
ModifiableContainer
,Registry
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fireContainerEvent
(E[] elements, IContainerDelta.Kind kind) void
fireContainerEvent
(E element, IContainerDelta.Kind kind) void
fireContainerEvent
(List<IContainerDelta<E>> deltas) void
fireElementAddedEvent
(E element) void
fireElementRemovedEvent
(E element) void
fireElementsAddedEvent
(E[] elements) void
fireElementsRemovedEvent
(E[] elements) void
boolean
isEmpty()
protected ContainerEvent<E>
protected SingleDeltaContainerEvent<E>
newContainerEvent
(E element, IContainerDelta.Kind kind) Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements
Methods inherited from interface org.eclipse.net4j.util.event.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:
isEmpty
in interfaceIContainer<E>
-
fireEvent
-
fireContainerEvent
-
fireElementAddedEvent
-
fireElementRemovedEvent
-
fireContainerEvent
- Since:
- 2.0
-
fireElementsAddedEvent
- Since:
- 2.0
-
fireElementsRemovedEvent
- Since:
- 2.0
-
fireContainerEvent
-
newContainerEvent
-
newContainerEvent
-