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>
- Type Parameters:
E- the element type
- 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 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
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 PersistableContainer
containerModified, doActivate, doDeactivate, getPersistence, isSavedWhenModified, load, save, setPersistenceMethods inherited from class ModifiableContainer
addAllElements, addElement, clear, elementAdded, elementRemoved, firstElementAdded, getComponentType, getElements, isEmpty, lastElementRemoved, removeAllElements, removeElement, sortElements, validateElementMethods inherited from class Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventMethods inherited from class Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doCancelActivation, 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
getElements, isEmptyMethods inherited from interface 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>
-