Package org.reactfx.collection
Class MemoizationListImpl.MemoizedView
java.lang.Object
org.reactfx.ObservableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>>
org.reactfx.collection.LiveListBase<E>
org.reactfx.collection.MemoizationListImpl.MemoizedView
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
,SequencedCollection<E>
,javafx.beans.Observable
,javafx.collections.ObservableList<E>
,AccessorListMethods<E>
,LiveList<E>
,ProperLiveList<E>
,UnmodifiableByDefaultList<E>
,UnmodifiableByDefaultLiveList<E>
,Observable<LiveList.Observer<? super E,
,?>> ProperObservable<LiveList.Observer<? super E,
?>, QuasiListChange<? extends E>>
- Enclosing class:
MemoizationListImpl<E>
private class MemoizationListImpl.MemoizedView
extends LiveListBase<E>
implements UnmodifiableByDefaultLiveList<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> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(int index) protected Subscription
Starts observing this observable's input(s), if any.private void
prepareNotifications
(QuasiListChange<? extends E> change) private void
prepareNotifications
(QuasiListModification<? extends E> mod) private void
int
size()
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 java.util.Collection
parallelStream, removeIf, stream, toArray
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.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
-
Constructor Details
-
MemoizedView
private MemoizedView()
-
-
Method Details
-
observeInputs
Description copied from class:ObservableBase
Starts 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:
observeInputs
in classObservableBase<LiveList.Observer<? super E,
?>, QuasiListChange<? extends E>> - 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.
-
get
-
size
public int size() -
prepareNotifications
-
prepareNotifications
-
publishNotifications
private void publishNotifications()
-