Class LiveArrayList<E>
java.lang.Object
org.reactfx.ObservableBase<LiveList.Observer<? super E, ?>, QuasiListChange<? extends E>>
org.reactfx.collection.LiveListBase<E>
org.reactfx.collection.LiveArrayList<E>
- All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, SequencedCollection<E>, javafx.beans.Observable, javafx.collections.ObservableList<E>, LiveList<E>, ProperLiveList<E>, Observable<LiveList.Observer<? super E, ?>>, ProperObservable<LiveList.Observer<? super E, ?>, QuasiListChange<? extends E>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface LiveList
LiveList.Observer<E,O>, LiveList.QuasiChangeObserver<E>, LiveList.QuasiModificationObserver<E> -
Property Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLiveArrayList(E... initialElements) LiveArrayList(Collection<? extends E> c) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends E> c) final booleanbooleanaddAll(Collection<? extends E> c) voidclear()default booleandefault booleancontainsAll(Collection<?> c) get(int index) default intdefault booleanisEmpty()iterator()default intdefault ListIterator<E> default ListIterator<E> listIterator(int index) protected SubscriptionStarts observing this observable's input(s), if any.remove(int index) voidremove(int from, int to) booleanfinal booleanbooleanremoveAll(Collection<?> c) final booleanbooleanretainAll(Collection<?> c) final booleanbooleansetAll(Collection<? extends E> c) intsize()subList(int fromIndex, int toIndex) default Object[]toArray()default <T> T[]toArray(T[] a) Methods inherited from class ObservableBase
addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, newObserver, notifyObservers, notifyObservers, observe, removeObserver, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliteratorMethods inherited from interface LiveList
addChangeObserver, addListener, addListener, addModificationObserver, addQuasiChangeObserver, addQuasiModificationObserver, changes, collapse, collapseDynamic, map, mapDynamic, memoize, modifications, observeChanges, observeModifications, observeQuasiChanges, observeQuasiModifications, pin, quasiChanges, quasiModifications, reduce, reduceRange, removeChangeObserver, removeListener, removeListener, removeModificationObserver, removeQuasiChangeObserver, removeQuasiModificationObserver, sizeProperty, suspendableMethods inherited from interface Observable
addObserver, observe, removeObserverMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sortedMethods inherited from interface ProperLiveList
contentReplacement, defaultEquals, defaultHashCode, defaultNotificationAccumulator, defaultToString, fireContentReplacement, fireElemInsertion, fireElemRemoval, fireElemReplacement, fireModification, fireRangeInsertion, fireRemoveRangeMethods inherited from interface ProperObservable
notifyObservers
-
Constructor Details
-
LiveArrayList
public LiveArrayList() -
LiveArrayList
-
LiveArrayList
-
-
Method Details
-
size
public int size() -
get
-
set
-
setAll
-
setAll
-
add
-
add
-
addAll
-
addAll
-
addAll
-
remove
-
remove
public void remove(int from, int to) -
remove
-
removeAll
-
removeAll
-
retainAll
-
retainAll
-
clear
public void clear() -
observeInputs
Description copied from class:ObservableBaseStarts observing this observable's input(s), if any. This method is called when the number of observers goes from 0 to 1. This method is called beforeObservableBase.newObserver(Object)is called for the first observer.- Specified by:
observeInputsin classObservableBase<LiveList.Observer<? super E, ?>, QuasiListChange<? extends E>>- Returns:
- subscription used to stop observing inputs. The subscription is unsubscribed (i.e. input observation stops) when the number of observers goes down to 0.
-
isEmpty
default boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>- Specified by:
isEmptyin interfaceList<E>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
contains
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceList<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
toArray
- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceList<E>
-
toArray
default <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceList<E>
-