public abstract class AbstractKFList<T>
extends java.lang.Object
implements java.util.Collection<T>, ej.kf.FeatureStateListener
Collection with multi-context support.
This class can only be embedded in Kernel code. It cannot be embedded into Feature code.
This collection does not allow to pass null elements.
The semantic is the following:
ArrayList.Collection.clear() method clears the whole collection. The
call to Collection.iterator() method return an iterator on all objects of the collection...| Constructor and Description |
|---|
AbstractKFList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(java.util.Collection<? extends T> c) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
removeAll(java.util.Collection<?> c) |
protected abstract void |
removeAllElementsOwnedBy(ej.kf.Feature feature)
Removed all elements owned by the given
Feature. |
boolean |
retainAll(java.util.Collection<?> c) |
void |
stateChanged(ej.kf.Feature feature,
ej.kf.Feature.State previousState) |
java.lang.Object[] |
toArray() |
protected abstract void |
toArray(java.util.ArrayList<T> allList)
Add all the elements of the collection to the given
ArrayList. |
<E> E[] |
toArray(E[] a) |
public final void stateChanged(ej.kf.Feature feature,
ej.kf.Feature.State previousState)
stateChanged in interface ej.kf.FeatureStateListenerpublic boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>public <E> E[] toArray(E[] a)
toArray in interface java.util.Collection<T>protected abstract void removeAllElementsOwnedBy(ej.kf.Feature feature)
Feature.feature - the owner of the elements to be removedprotected abstract void toArray(java.util.ArrayList<T> allList)
ArrayList.allList - the list where all elements are added.