Package org.reactfx.collection
Class ValAsList<T>
- java.lang.Object
-
- org.reactfx.ObservableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>>
-
- org.reactfx.collection.LiveListBase<T>
-
- org.reactfx.collection.ValAsList<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Collection<T>,java.util.List<T>,javafx.beans.Observable,javafx.collections.ObservableList<T>,AccessorListMethods<T>,LiveList<T>,ProperLiveList<T>,UnmodifiableByDefaultList<T>,UnmodifiableByDefaultLiveList<T>,Observable<LiveList.Observer<? super T,?>>,ProperObservable<LiveList.Observer<? super T,?>,QuasiListChange<? extends T>>
class ValAsList<T> extends LiveListBase<T> implements UnmodifiableByDefaultLiveList<T>
-
-
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 Modifier and Type Field Description private javafx.beans.value.ObservableValue<T>underlying
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(int index)protected SubscriptionobserveInputs()Starts observing this observable's input(s), if any.intsize()-
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.collection.AccessorListMethods
contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArray
-
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.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
-
-
-
-
Field Detail
-
underlying
private final javafx.beans.value.ObservableValue<T> underlying
-
-
Constructor Detail
-
ValAsList
ValAsList(javafx.beans.value.ObservableValue<T> underlying)
-
-
Method Detail
-
size
public int size()
-
observeInputs
protected Subscription 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 T,?>,QuasiListChange<? extends T>>- 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.
-
-