Package org.eclipse.net4j.util.container
Class ContainerElementList<ELEMENT>
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<ELEMENT>
org.eclipse.net4j.util.container.ContainerElementList<ELEMENT>
- All Implemented Interfaces:
IContainer<ELEMENT>
,INotifier
,INotifier.INotifier2
,IDeactivateable
,ILifecycle
,ILifecycle.DeferrableActivation
- Since:
- 3.26
- 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
ConstructorDescriptionContainerElementList
(Class<ELEMENT> elementType) ContainerElementList
(Class<ELEMENT> elementType, IManagedContainer container) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
final boolean
forEachElement
(Predicate<ELEMENT> handler) final IManagedContainer
final ELEMENT[]
protected Object[]
getInitialElements
(IManagedContainer container) protected final void
initContainerElements
(String productGroup) protected final void
initContainerElements
(String productGroup, String type) protected final void
initContainerElements
(String productGroup, String type, String description) final boolean
isEmpty()
protected ELEMENT[]
postProcessElementArray
(ELEMENT[] elements) protected boolean
testElement
(Object object) Methods inherited from class org.eclipse.net4j.util.container.Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEvent
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, 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.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
ContainerElementList
-
ContainerElementList
-
-
Method Details
-
getContainer
-
getElementType
-
isEmpty
public final boolean isEmpty() -
getElements
-
forEachElement
-
initContainerElements
-
initContainerElements
-
initContainerElements
-
postProcessElementArray
-
getInitialElements
-
testElement
-
doActivate
- Overrides:
doActivate
in classLifecycle
- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivate
in classLifecycle
- Throws:
Exception
-