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 voidadd(int index, E element)booleanadd(E e)booleanaddAll(int index, java.util.Collection<? extends E> c)booleanaddAll(E... elements)booleanaddAll(java.util.Collection<? extends E> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)Eget(int index)protected QuasiListChange<? extends E>headOf(ListModificationSequence<E> accum)intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<E>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<E>listIterator()java.util.ListIterator<E>listIterator(int index)Eremove(int index)voidremove(int from, int to)booleanremove(java.lang.Object o)booleanremoveAll(E... elements)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(E... elements)booleanretainAll(java.util.Collection<?> c)Eset(int index, E element)booleansetAll(E... elements)booleansetAll(java.util.Collection<? extends E> c)intsize()protected AccumulatorSizesizeOf(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:
sizeOfin classSuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
-
headOf
protected QuasiListChange<? extends E> headOf(ListModificationSequence<E> accum)
- Specified by:
headOfin classSuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
-
tailOf
protected ListModificationSequence<E> tailOf(ListModificationSequence<E> accum)
- Specified by:
tailOfin classSuspendableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>,ListModificationSequence<E>>
-
addAll
@SafeVarargs public final boolean addAll(E... elements)
- Specified by:
addAllin interfacejavafx.collections.ObservableList<E>
-
remove
public void remove(int from, int to)- Specified by:
removein interfacejavafx.collections.ObservableList<E>
-
removeAll
@SafeVarargs public final boolean removeAll(E... elements)
- Specified by:
removeAllin interfacejavafx.collections.ObservableList<E>
-
retainAll
@SafeVarargs public final boolean retainAll(E... elements)
- Specified by:
retainAllin interfacejavafx.collections.ObservableList<E>
-
setAll
@SafeVarargs public final boolean setAll(E... elements)
- Specified by:
setAllin interfacejavafx.collections.ObservableList<E>
-
setAll
public boolean setAll(java.util.Collection<? extends E> c)
- Specified by:
setAllin 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:
addAllin 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:
indexOfin interfacejava.util.List<E>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<E>
-
listIterator
public java.util.ListIterator<E> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<E>
-
listIterator
public java.util.ListIterator<E> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<E>
-
-