Package org.reactfx.collection
Class SuspendableListWrapper<E>
- java.lang.Object
-
- org.reactfx.ObservableBase<O,T>
-
- org.reactfx.SuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
-
- org.reactfx.collection.SuspendableListWrapper<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.reactfx.collection.LiveList
LiveList.Observer<E,O>, LiveList.QuasiChangeObserver<E>, LiveList.QuasiModificationObserver<E>
-
-
Constructor Summary
Constructors Constructor Description SuspendableListWrapper(javafx.collections.ObservableList<E> source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, E element)
boolean
add(E e)
boolean
addAll(int index, java.util.Collection<? extends E> c)
boolean
addAll(E... elements)
boolean
addAll(java.util.Collection<? extends E> c)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
E
get(int index)
protected QuasiListChange<? extends E>
headOf(ListModificationSequence<E> accum)
int
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<E>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<E>
listIterator()
java.util.ListIterator<E>
listIterator(int index)
E
remove(int index)
void
remove(int from, int to)
boolean
remove(java.lang.Object o)
boolean
removeAll(E... elements)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(E... elements)
boolean
retainAll(java.util.Collection<?> c)
E
set(int index, E element)
boolean
setAll(E... elements)
boolean
setAll(java.util.Collection<? extends E> c)
int
size()
protected AccumulatorSize
sizeOf(ListModificationSequence<E> accum)
java.util.List<E>
subList(int fromIndex, int toIndex)
protected ListModificationSequence<E>
tailOf(ListModificationSequence<E> accum)
java.lang.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 org.reactfx.Guardian
guardWhile, guardWhile
-
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 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 Detail
-
delegate
private final javafx.collections.ObservableList<E> delegate
-
-
Constructor Detail
-
SuspendableListWrapper
SuspendableListWrapper(javafx.collections.ObservableList<E> source)
-
-
Method Detail
-
sizeOf
protected AccumulatorSize sizeOf(ListModificationSequence<E> accum)
- Specified by:
sizeOf
in classSuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
-
headOf
protected QuasiListChange<? extends E> headOf(ListModificationSequence<E> accum)
- Specified by:
headOf
in classSuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
-
tailOf
protected ListModificationSequence<E> tailOf(ListModificationSequence<E> accum)
- Specified by:
tailOf
in classSuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
-
addAll
@SafeVarargs public final boolean addAll(E... elements)
- 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
@SafeVarargs public final boolean removeAll(E... elements)
- Specified by:
removeAll
in interfacejavafx.collections.ObservableList<E>
-
retainAll
@SafeVarargs public final boolean retainAll(E... elements)
- Specified by:
retainAll
in interfacejavafx.collections.ObservableList<E>
-
setAll
@SafeVarargs public final boolean setAll(E... elements)
- Specified by:
setAll
in interfacejavafx.collections.ObservableList<E>
-
setAll
public boolean setAll(java.util.Collection<? extends E> c)
- Specified by:
setAll
in interfacejavafx.collections.ObservableList<E>
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<E> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(E e)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> c)
- Specified by:
addAll
in interfacejava.util.List<E>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
clear
public void clear()
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<E>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<E>
-
listIterator
public java.util.ListIterator<E> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<E>
-
listIterator
public java.util.ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<E>
-
-