Package org.reactfx.collection
Class MappedList<E,F>
java.lang.Object
org.reactfx.ObservableBase<LiveList.Observer<? super F,?>,QuasiListChange<? extends F>>
org.reactfx.collection.LiveListBase<F>
org.reactfx.collection.MappedList<E,F>
- All Implemented Interfaces:
Iterable<F>,Collection<F>,List<F>,SequencedCollection<F>,javafx.beans.Observable,javafx.collections.ObservableList<F>,AccessorListMethods<F>,LiveList<F>,ProperLiveList<F>,UnmodifiableByDefaultList<F>,UnmodifiableByDefaultLiveList<F>,Observable<LiveList.Observer<? super F,,?>> ProperObservable<LiveList.Observer<? super F,?>, QuasiListChange<? extends F>>
-
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
ConstructorsConstructorDescriptionMappedList(javafx.collections.ObservableList<? extends E> source, Function<? super E, ? extends F> mapper) -
Method Summary
Modifier and TypeMethodDescriptionget(int index) (package private) static <E,F> QuasiListChange <F> mappedChangeView(QuasiListChange<? extends E> change, Function<? super E, ? extends F> mapper) protected SubscriptionStarts observing this observable's input(s), if any.intsize()private voidsourceChanged(QuasiListChange<? extends E> change) Methods inherited from class org.reactfx.ObservableBase
addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, newObserver, notifyObservers, notifyObservers, observe, removeObserver, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.reactfx.collection.AccessorListMethods
contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArrayMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliteratorMethods 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, suspendableMethods inherited from interface org.reactfx.Observable
addObserver, observe, removeObserverMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sortedMethods inherited from interface org.reactfx.collection.ProperLiveList
contentReplacement, defaultEquals, defaultHashCode, defaultNotificationAccumulator, defaultToString, fireContentReplacement, fireElemInsertion, fireElemRemoval, fireElemReplacement, fireModification, fireRangeInsertion, fireRemoveRangeMethods inherited from interface org.reactfx.ProperObservable
notifyObservers
-
Field Details
-
source
-
mapper
-
-
Constructor Details
-
MappedList
-
-
Method Details
-
get
-
size
public int size() -
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 F,?>, QuasiListChange<? extends F>> - 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.
-
sourceChanged
-
mappedChangeView
static <E,F> QuasiListChange<F> mappedChangeView(QuasiListChange<? extends E> change, Function<? super E, ? extends F> mapper)
-