public class KFList<T> extends AbstractKFList<T>
AbstractKFList optimized for speed.
Access of elements through HashMap and ArrayList.KFList2| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T element) |
void |
clear() |
boolean |
contains(java.lang.Object element) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object element) |
protected void |
removeAllElementsOwnedBy(ej.kf.Feature feature)
Removed all elements owned by the given
Feature. |
int |
size() |
protected void |
toArray(java.util.ArrayList<T> allList)
Add all the elements of the collection to the given
ArrayList. |
addAll, containsAll, removeAll, retainAll, stateChanged, toArray, toArraypublic boolean contains(java.lang.Object element)
public boolean add(T element)
java.lang.IllegalArgumentException - if this method is called by the Kernel and the element is owned by a Feature.public boolean remove(java.lang.Object element)
public java.util.Iterator<T> iterator()
public void clear()
public boolean isEmpty()
public int size()
protected void toArray(java.util.ArrayList<T> allList)
AbstractKFListArrayList.toArray in class AbstractKFList<T>allList - the list where all elements are added.protected void removeAllElementsOwnedBy(ej.kf.Feature feature)
AbstractKFListFeature.removeAllElementsOwnedBy in class AbstractKFList<T>feature - the owner of the elements to be removed