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.DelegatingIterator
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.event.INotifier
INotifier.INotifier2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
E[]
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class org.eclipse.net4j.util.container.delegate.AbstractDelegator
createEvent, dispatchEvent, fireAddedEvent, fireRemovedEvent
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
ContainerCollection
-
-
Method Details
-
getDelegate
- Specified by:
getDelegate
in interfaceIContainerCollection<E>
-
getElements
- Specified by:
getElements
in interfaceIContainer<E>
-
add
- Specified by:
add
in interfaceCollection<E>
- Category
- WRITE
-
addAll
- Specified by:
addAll
in interfaceCollection<E>
- Category
- WRITE
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
- Category
- WRITE
-
remove
- Specified by:
remove
in interfaceCollection<E>
- Category
- WRITE
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
- Category
- WRITE
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
- Category
- WRITE
-
contains
- Specified by:
contains
in interfaceCollection<E>
- Category
- READ
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Category
- READ
-
equals
- Specified by:
equals
in interfaceCollection<E>
- Overrides:
equals
in classObject
- Category
- READ
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<E>
- Overrides:
hashCode
in classObject
- Category
- READ
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<E>
- Specified by:
isEmpty
in interfaceIContainer<E>
- Category
- READ
-
iterator
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Category
- READ
-
toArray
- Specified by:
toArray
in interfaceCollection<E>
- Category
- READ
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<E>
- Category
- READ
-