public class ArrayListForContainerAware<P extends oracle.fmwplatform.envspec.common.ParentContainerWithVariables,E extends oracle.fmwplatform.envspec.common.ContainerAware<P>> extends NoNullArrayList<E>
modCount| Constructor and Description |
|---|
ArrayListForContainerAware(P parentContainerWithVariables)
Constructs an empty list with an initial capacity of ten.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Appends the specified element to the end of this list.
|
void |
add(int index, E e)
Inserts the specified element in the list at the specified position.
|
boolean |
addAll(Collection<? extends E> c)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator.
|
boolean |
addAll(int index, Collection<? extends E> c)
Inserts the elements in the specified collection at the specified position.
|
static <P extends oracle.fmwplatform.envspec.common.ParentContainerWithVariables,E extends oracle.fmwplatform.envspec.common.ContainerAware<P>> |
checkContainerAwareList(List<E> elements, P parent)
Static convenience method for establishing a container-aware element list.
|
E |
set(int index, E e)
Adds the specified element to this list at the specified position.
|
clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic ArrayListForContainerAware(P parentContainerWithVariables)
parentContainerWithVariables - the container to set as the parentpublic boolean add(E e)
add in interface Collection<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>add in interface List<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>add in class NoNullArrayList<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>e - element to be appended to this listCollection.add(E))public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>addAll in interface List<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>addAll in class NoNullArrayList<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>c - collection containing elements to be added to this listNullPointerException - if the specified collection is null
public void add(int index,
E e)
public boolean addAll(int index,
Collection<? extends E> c)
addAll in interface List<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>addAll in class NoNullArrayList<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>index - position to add in this listc - collection containing elements to be added to this listCollection.add(E))public E set(int index, E e)
set in interface List<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>set in class NoNullArrayList<E extends oracle.fmwplatform.envspec.common.ContainerAware<P>>index - position to add in this liste - element to be appended to this listpublic static <P extends oracle.fmwplatform.envspec.common.ParentContainerWithVariables,E extends oracle.fmwplatform.envspec.common.ContainerAware<P>> ArrayListForContainerAware<P,E> checkContainerAwareList(List<E> elements, P parent)
E - generic type used for the list of elementsP - generic type used for the container-aware parentelements - the existing list of container-aware child elementsparent - the parent of the container-aware child elements