Package org.reactfx.collection
Class SuspendableListWrapper<E>
java.lang.Object
org.reactfx.ObservableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>>
org.reactfx.SuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
org.reactfx.collection.SuspendableListWrapper<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
,SequencedCollection<E>
,javafx.beans.Observable
,javafx.collections.ObservableList<E>
,LiveList<E>
,ProperLiveList<E>
,SuspendableList<E>
,Guardian
,ObservableList<E>
,Observable
,Observable<LiveList.Observer<? super E,
,?>> ProperObservable<LiveList.Observer<? super E,
,?>, QuasiListChange<? extends E>> Suspendable
final class SuspendableListWrapper<E>
extends SuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
implements SuspendableList<E>, ProperLiveList<E>
-
Property Summary
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.reactfx.collection.LiveList
LiveList.Observer<E,
O>, LiveList.QuasiChangeObserver<E>, LiveList.QuasiModificationObserver<E> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends E> c) final boolean
boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) protected QuasiListChange
<? extends E> headOf
(ListModificationSequence<E> accum) int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) void
remove
(int from, int to) boolean
final boolean
boolean
removeAll
(Collection<?> c) final boolean
boolean
retainAll
(Collection<?> c) final boolean
boolean
setAll
(Collection<? extends E> c) int
size()
protected AccumulatorSize
sizeOf
(ListModificationSequence<E> accum) subList
(int fromIndex, int toIndex) protected ListModificationSequence
<E> tailOf
(ListModificationSequence<E> accum) Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class org.reactfx.SuspendableBase
initialAccumulator, isSuspended, observeInputs, reduce, suspend
Methods inherited from class org.reactfx.ObservableBase
addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, newObserver, notifyObservers, notifyObservers, observe, removeObserver, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface org.reactfx.Guardian
guardWhile, guardWhile
Methods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
Methods inherited from interface org.reactfx.collection.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, suspendable
Methods inherited from interface org.reactfx.inhibeans.Observable
blockWhile, blockWhile, guard
Methods inherited from interface org.reactfx.Observable
addObserver, observe, removeObserver
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
Methods inherited from interface org.reactfx.collection.ProperLiveList
contentReplacement, defaultEquals, defaultHashCode, defaultNotificationAccumulator, defaultToString, fireContentReplacement, fireElemInsertion, fireElemRemoval, fireElemReplacement, fireModification, fireRangeInsertion, fireRemoveRange
Methods inherited from interface org.reactfx.ProperObservable
notifyObservers
Methods inherited from interface org.reactfx.Suspendable
suspend, suspendWhen, suspendWhile, suspendWhile
Methods inherited from interface org.reactfx.collection.SuspendableList
block
-
Field Details
-
delegate
-
-
Constructor Details
-
SuspendableListWrapper
SuspendableListWrapper(javafx.collections.ObservableList<E> source)
-
-
Method Details
-
sizeOf
- Specified by:
sizeOf
in classSuspendableBase<LiveList.Observer<? super E,
?>, QuasiListChange<? extends E>, ListModificationSequence<E>>
-
headOf
- Specified by:
headOf
in classSuspendableBase<LiveList.Observer<? super E,
?>, QuasiListChange<? extends E>, ListModificationSequence<E>>
-
tailOf
- Specified by:
tailOf
in classSuspendableBase<LiveList.Observer<? super E,
?>, QuasiListChange<? extends E>, ListModificationSequence<E>>
-
addAll
- Specified by:
addAll
in interfacejavafx.collections.ObservableList<E>
-
remove
public void remove(int from, int to) - Specified by:
remove
in interfacejavafx.collections.ObservableList<E>
-
removeAll
- Specified by:
removeAll
in interfacejavafx.collections.ObservableList<E>
-
retainAll
- Specified by:
retainAll
in interfacejavafx.collections.ObservableList<E>
-
setAll
- Specified by:
setAll
in interfacejavafx.collections.ObservableList<E>
-
setAll
- Specified by:
setAll
in interfacejavafx.collections.ObservableList<E>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
subList
-