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.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2 -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionListContainer(Class<E> componentType) ListContainer(Class<E> componentType, List<E> list) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbackingStoreAdd(E element) protected voidprotected booleanbackingStoreContains(E element) protected voidbackingStoreForEach(Consumer<E> consumer) protected booleanprotected booleanbackingStoreRemove(E element) protected intprotected E[]backingStoreToArray(E[] a) getList()Methods inherited from class org.eclipse.net4j.util.container.PersistableContainer
containerModified, doActivate, doDeactivate, getPersistence, isSavedWhenModified, load, save, setPersistenceMethods inherited from class org.eclipse.net4j.util.container.ModifiableContainer
addAllElements, addElement, clear, elementAdded, elementRemoved, firstElementAdded, getComponentType, getElements, isEmpty, lastElementRemoved, removeAllElements, removeElement, sortElements, validateElementMethods inherited from class org.eclipse.net4j.util.container.Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventMethods 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, toStringMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmptyMethods 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:
backingStoreIsEmptyin classModifiableContainer<E>
-
backingStoreSize
protected int backingStoreSize()- Specified by:
backingStoreSizein classModifiableContainer<E>
-
backingStoreToArray
- Specified by:
backingStoreToArrayin classModifiableContainer<E>
-
backingStoreForEach
- Specified by:
backingStoreForEachin classModifiableContainer<E>
-
backingStoreContains
- Specified by:
backingStoreContainsin classModifiableContainer<E>
-
backingStoreAdd
- Specified by:
backingStoreAddin classModifiableContainer<E>
-
backingStoreRemove
- Specified by:
backingStoreRemovein classModifiableContainer<E>
-
backingStoreClear
protected void backingStoreClear()- Specified by:
backingStoreClearin classModifiableContainer<E>
-