Class ContainerCollection<E>
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.container.delegate.AbstractDelegator<E>
org.eclipse.net4j.util.container.delegate.ContainerCollection<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,IContainerCollection<E>,IContainer<E>,INotifier,INotifier.INotifier2
- Direct Known Subclasses:
ContainerList,ContainerQueue,ContainerSet
A default implementation of a
container collection.- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.net4j.util.container.delegate.AbstractDelegator
AbstractDelegator.DelegatingIteratorNested 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.event.INotifier
INotifier.INotifier2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanE[]inthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class org.eclipse.net4j.util.container.delegate.AbstractDelegator
createEvent, dispatchEvent, fireAddedEvent, fireRemovedEventMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArrayMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
ContainerCollection
-
-
Method Details
-
getDelegate
- Specified by:
getDelegatein interfaceIContainerCollection<E>
-
getElements
- Specified by:
getElementsin interfaceIContainer<E>
-
add
- Specified by:
addin interfaceCollection<E>- Category
- WRITE
-
addAll
- Specified by:
addAllin interfaceCollection<E>- Category
- WRITE
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Category
- WRITE
-
remove
- Specified by:
removein interfaceCollection<E>- Category
- WRITE
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Category
- WRITE
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Category
- WRITE
-
contains
- Specified by:
containsin interfaceCollection<E>- Category
- READ
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Category
- READ
-
equals
- Specified by:
equalsin interfaceCollection<E>- Overrides:
equalsin classObject- Category
- READ
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<E>- Overrides:
hashCodein classObject- Category
- READ
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>- Specified by:
isEmptyin interfaceIContainer<E>- Category
- READ
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Category
- READ
-
toArray
- Specified by:
toArrayin interfaceCollection<E>- Category
- READ
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<E>- Category
- READ
-