Package org.eclipse.net4j.util.container
Class ListContainer<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>
org.eclipse.net4j.util.container.ModifiableContainer<E>
org.eclipse.net4j.util.container.PersistableContainer<E>
org.eclipse.net4j.util.container.ListContainer<E>
- All Implemented Interfaces:
IContainer<E>
,IContainer.Modifiable<E>
,IContainer.Persistable<E>
,INotifier
,INotifier.INotifier2
,IDeactivateable
,ILifecycle
,ILifecycle.DeferrableActivation
- Since:
- 3.18
- 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
ConstructorDescriptionListContainer
(Class<E> componentType) ListContainer
(Class<E> componentType, List<E> list) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
backingStoreAdd
(E element) protected void
protected boolean
backingStoreContains
(E element) protected void
backingStoreForEach
(Consumer<E> consumer) protected boolean
protected boolean
backingStoreRemove
(E element) protected int
protected E[]
backingStoreToArray
(E[] a) getList()
Methods inherited from class org.eclipse.net4j.util.container.PersistableContainer
containerModified, doActivate, doDeactivate, getPersistence, isSavedWhenModified, load, save, setPersistence
Methods inherited from class org.eclipse.net4j.util.container.ModifiableContainer
addAllElements, addElement, clear, elementAdded, elementRemoved, firstElementAdded, getComponentType, getElements, isEmpty, lastElementRemoved, removeAllElements, removeElement, sortElements, validateElement
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.container.IContainer
getElements, isEmpty
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
ListContainer
-
ListContainer
-
-
Method Details
-
getList
-
backingStoreIsEmpty
protected boolean backingStoreIsEmpty()- Specified by:
backingStoreIsEmpty
in classModifiableContainer<E>
-
backingStoreSize
protected int backingStoreSize()- Specified by:
backingStoreSize
in classModifiableContainer<E>
-
backingStoreToArray
- Specified by:
backingStoreToArray
in classModifiableContainer<E>
-
backingStoreForEach
- Specified by:
backingStoreForEach
in classModifiableContainer<E>
-
backingStoreContains
- Specified by:
backingStoreContains
in classModifiableContainer<E>
-
backingStoreAdd
- Specified by:
backingStoreAdd
in classModifiableContainer<E>
-
backingStoreRemove
- Specified by:
backingStoreRemove
in classModifiableContainer<E>
-
backingStoreClear
protected void backingStoreClear()- Specified by:
backingStoreClear
in classModifiableContainer<E>
-