E - public class ArrayListWml<E> extends ArrayList<E>
modCount| Constructor and Description |
|---|
ArrayListWml(Object p) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Appends the specified element to the end of this list,
checking for common content errors, and setting parent correctly.
|
void |
add(int index,
E e)
Inserts the specified element at the specified position in this
list, checking for common content errors, and setting parent correctly.
|
boolean |
addAll(Collection<? extends E> c)
Appends all of the elements in the specified collection to the end of
this list, checking for common content errors, and setting parent correctly.
|
boolean |
addAll(int index,
Collection<? extends E> c)
Inserts all of the elements in the specified collection into this
list (checking for common content errors etc), starting at the specified position.
|
boolean |
contains(Object o)
Returns true if this list contains the specified element
(or a JAXBElement containing it).
|
Object |
getParent() |
int |
indexOf(Object o)
Returns the index of the first occurrence of the specified element
(or a JAXBElement containing it) in this list,
or -1 if this list does not contain the element.
|
int |
lastIndexOf(Object o)
Returns the index of the last occurrence of the specified element
(or a JAXBElement containing it) in this list, or -1 if this list does not contain the element.
|
boolean |
remove(Object o)
Removes the first occurrence of the specified element
(or a JAXBElement containing it) from this list,
if it is present.
|
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E e)
Replaces the element at the specified position in this list with
the specified element,
checking for common content errors, and setting parent correctly.
|
clear, clone, ensureCapacity, forEach, get, isEmpty, iterator, listIterator, listIterator, remove, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic ArrayListWml(Object p)
public boolean contains(Object o)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in class ArrayList<E>public E set(int index, E e)
public boolean add(E e)
add in interface Collection<E>add in interface List<E>add in class ArrayList<E>e - element to be appended to this listCollection.add(E))public void add(int index,
E e)
public boolean remove(Object o)
public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface List<E>addAll in class ArrayList<E>c - collection containing elements to be added to this listNullPointerException - if the specified collection is nullpublic boolean addAll(int index,
Collection<? extends E> c)
addAll in interface List<E>addAll in class ArrayList<E>index - index at which to insert the first element from the
specified collectionc - collection containing elements to be added to this listIndexOutOfBoundsExceptionNullPointerException - if the specified collection is nullpublic boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public Object getParent()
Copyright © 2007-2020. All Rights Reserved.