public final class LiveArrayList<E> extends LiveListBase<E>
LiveList.Observer<E,O>, LiveList.QuasiChangeObserver<E>, LiveList.QuasiModificationObserver<E>| Constructor and Description |
|---|
LiveArrayList() |
LiveArrayList(java.util.Collection<? extends E> c) |
LiveArrayList(E... initialElements) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(E... elems) |
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
void |
clear() |
default boolean |
contains(java.lang.Object o) |
default boolean |
containsAll(java.util.Collection<?> c) |
E |
get(int index) |
default int |
indexOf(java.lang.Object o) |
default boolean |
isEmpty() |
default java.util.Iterator<E> |
iterator() |
default int |
lastIndexOf(java.lang.Object o) |
default java.util.ListIterator<E> |
listIterator() |
default java.util.ListIterator<E> |
listIterator(int index) |
protected Subscription |
observeInputs()
Starts observing this observable's input(s), if any.
|
E |
remove(int index) |
void |
remove(int from,
int to) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeAll(E... elems) |
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
retainAll(E... elems) |
E |
set(int index,
E element) |
boolean |
setAll(java.util.Collection<? extends E> c) |
boolean |
setAll(E... elems) |
int |
size() |
default java.util.List<E> |
subList(int fromIndex,
int toIndex) |
default java.lang.Object[] |
toArray() |
default <T> T[] |
toArray(T[] a) |
addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, newObserver, notifyObservers, notifyObservers, observe, removeObserver, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontentReplacement, defaultEquals, defaultHashCode, defaultNotificationAccumulator, defaultToString, elemInsertion, elemRemoval, elemReplacement, fireContentReplacement, fireElemInsertion, fireElemRemoval, fireElemReplacement, fireModification, fireRangeInsertion, fireRemoveRange, rangeInsertion, rangeRemovaladdChangeObserver, addListener, addListener, addModificationObserver, addQuasiChangeObserver, addQuasiModificationObserver, changes, changesOf, collapse, collapse, collapseDynamic, collapseDynamic, map, map, mapDynamic, mapDynamic, memoize, memoize, modifications, observeChanges, observeChanges, observeModifications, observeQuasiChanges, observeQuasiChanges, observeQuasiModifications, pin, quasiChanges, quasiChangesOf, quasiModifications, reduce, reduce, reduceRange, reduceRange, removeChangeObserver, removeListener, removeListener, removeModificationObserver, removeQuasiChangeObserver, removeQuasiModificationObserver, sizeOf, sizeProperty, suspendable, suspendable, wrapValcontains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, replaceAll, sort, spliterator, subList, toArray, toArraynotifyObserversaddObserver, observe, removeObserverpublic LiveArrayList()
public LiveArrayList(java.util.Collection<? extends E> c)
@SafeVarargs public LiveArrayList(E... initialElements)
public int size()
public E get(int index)
public boolean setAll(java.util.Collection<? extends E> c)
@SafeVarargs public final boolean setAll(E... elems)
public void add(int index,
E element)
public boolean add(E e)
public boolean addAll(int index,
java.util.Collection<? extends E> c)
public boolean addAll(java.util.Collection<? extends E> c)
@SafeVarargs public final boolean addAll(E... elems)
public E remove(int index)
public void remove(int from,
int to)
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
@SafeVarargs public final boolean removeAll(E... elems)
public boolean retainAll(java.util.Collection<?> c)
@SafeVarargs public final boolean retainAll(E... elems)
public void clear()
protected Subscription observeInputs()
ObservableBaseObservableBase.newObserver(Object)
is called for the first observer.observeInputs in class ObservableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>isEmpty in interface java.util.List<E>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<E>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>contains in interface java.util.List<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>containsAll in interface java.util.List<E>public java.util.Iterator<E> iterator()
iterator in interface java.util.Collection<E>iterator in interface java.lang.Iterable<E>iterator in interface java.util.List<E>public java.util.ListIterator<E> listIterator()
listIterator in interface java.util.List<E>public java.util.ListIterator<E> listIterator(int index)
listIterator in interface java.util.List<E>public java.util.List<E> subList(int fromIndex,
int toIndex)
subList in interface java.util.List<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>toArray in interface java.util.List<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>toArray in interface java.util.List<E>