T - generic parameter typepublic class ReplacingArrayList<T>
extends java.util.ArrayList<T>
add(Object),addOrReplace(Object), add(Object),
contains(Object), containsAll(Collection), remove(int),
removeAll(Collection), indexOf(Object), retainAll(Collection).| Constructor and Description |
|---|
ReplacingArrayList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T object) |
boolean |
addOrReplace(T object)
Add or replace new value.
|
boolean |
contains(java.lang.Object object) |
boolean |
containsAll(java.util.Collection<?> collection) |
int |
indexOf(java.lang.Object object) |
T |
remove(int index) |
boolean |
removeAll(java.util.Collection<?> collection) |
boolean |
retainAll(java.util.Collection<?> collection) |
T |
set(int index,
T object) |
add, addAll, addAll, clear, clone, ensureCapacity, forEach, get, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic boolean addOrReplace(T object)
object - the objectpublic int indexOf(java.lang.Object object)
public boolean add(T object)
public boolean contains(java.lang.Object object)
public boolean containsAll(java.util.Collection<?> collection)
public T remove(int index)
public boolean retainAll(java.util.Collection<?> collection)