E - public class ArrayListSml<E>
extends java.util.ArrayList<E>
| Constructor and Description |
|---|
ArrayListSml(java.lang.Object o) |
| 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(java.util.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,
java.util.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(java.lang.Object o)
Returns true if this list contains the specified element
(or a JAXBElement containing it).
|
java.lang.Object |
getParent() |
int |
indexOf(java.lang.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(java.lang.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(java.lang.Object o)
Removes the first occurrence of the specified element
(or a JAXBElement containing it) from this list,
if it is present.
|
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.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, trimToSizepublic boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>contains in interface java.util.List<E>contains in class java.util.ArrayList<E>o - element whose presence in this list is to be testedpublic int indexOf(java.lang.Object o)
public int lastIndexOf(java.lang.Object o)
public E set(int index, E e)
set in interface java.util.List<E>set in class java.util.ArrayList<E>index - index of the element to replaceelement - element to be stored at the specified positionjava.lang.IndexOutOfBoundsExceptionpublic boolean add(E e)
public void add(int index,
E e)
public boolean remove(java.lang.Object o)
public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>addAll in interface java.util.List<E>addAll in class java.util.ArrayList<E>c - collection containing elements to be added to this listjava.lang.NullPointerException - if the specified collection is nullpublic boolean addAll(int index,
java.util.Collection<? extends E> c)
addAll in interface java.util.List<E>addAll in class java.util.ArrayList<E>index - index at which to insert the first element from the
specified collectionc - collection containing elements to be added to this listjava.lang.IndexOutOfBoundsExceptionjava.lang.NullPointerException - if the specified collection is nullpublic boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public java.lang.Object getParent()
Copyright © 2007–2023. All rights reserved.