Top Inners Fields Constructors Methods
org.reactfx.collection

pack-priv Class MemoizationListImpl<E>

Located in compilation unit of org.reactfx.collection.MemoizationList.

extends LiveListBase<E>
implements MemoizationList<E>, UnmodifiableByDefaultLiveList<E>
Class Inheritance
All Implemented Interfaces
org.reactfx.collection.UnmodifiableByDefaultLiveList, org.reactfx.collection.UnmodifiableByDefaultList, org.reactfx.collection.AccessorListMethods, java.util.List, java.util.SequencedCollection, java.util.Collection, java.lang.Iterable, javafx.collections.ObservableList, javafx.beans.Observable, org.reactfx.collection.MemoizationList, org.reactfx.collection.LiveList, org.reactfx.Observable

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final MemoizationListImpl<E>.MemoizedView
private final ObservableList<E>
private final SparseList<E>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
public E
get(int index)

Implements java.util.List.get.

Returns the element at the specified position in this list.

public Optional<E>
public int
public int
public int
public IndexRange
public int
public boolean
public LiveList<E>
protected Subscription
observeInputs()

Implements abstract org.reactfx.ObservableBase.observeInputs.

Starts observing this observable's input(s), if any.

public int
size()

Implements java.util.List.size.

Returns the number of elements in this list.

private void
sourceChanged(QuasiListChange<? extends E> qc)

Field Detail

memoizedItemsback to summary
private final MemoizationListImpl<E>.MemoizedView memoizedItems
sourceback to summary
private final ObservableList<E> source
sparseListback to summary
private final SparseList<E> sparseList

Constructor Detail

MemoizationListImplback to summary
pack-priv MemoizationListImpl(ObservableList<E> source)

Method Detail

forceback to summary
public void force(int from, int to)

Implements org.reactfx.collection.MemoizationList.force.

Annotations
@Override
forgetback to summary
public void forget(int from, int to)

Implements org.reactfx.collection.MemoizationList.forget.

Annotations
@Override
getback to summary
public E get(int index)

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Annotations
@Override
getIfMemoizedback to summary
public Optional<E> getIfMemoized(int index)

Implements org.reactfx.collection.MemoizationList.getIfMemoized.

Annotations
@Override
getMemoizedCountback to summary
public int getMemoizedCount()

Implements org.reactfx.collection.MemoizationList.getMemoizedCount.

Annotations
@Override
getMemoizedCountAfterback to summary
public int getMemoizedCountAfter(int position)

Implements org.reactfx.collection.MemoizationList.getMemoizedCountAfter.

Annotations
@Override
getMemoizedCountBeforeback to summary
public int getMemoizedCountBefore(int position)

Implements org.reactfx.collection.MemoizationList.getMemoizedCountBefore.

Annotations
@Override
getMemoizedItemsRangeback to summary
public IndexRange getMemoizedItemsRange()

Implements org.reactfx.collection.MemoizationList.getMemoizedItemsRange.

Annotations
@Override
indexOfMemoizedItemback to summary
public int indexOfMemoizedItem(int index)

Implements org.reactfx.collection.MemoizationList.indexOfMemoizedItem.

Annotations
@Override
isMemoizedback to summary
public boolean isMemoized(int index)

Implements org.reactfx.collection.MemoizationList.isMemoized.

Annotations
@Override
memoizedItemsback to summary
public LiveList<E> memoizedItems()

Implements org.reactfx.collection.MemoizationList.memoizedItems.

Annotations
@Override
observeInputsback to summary
protected Subscription observeInputs()

Implements abstract org.reactfx.ObservableBase.observeInputs.

Doc from org.reactfx.ObservableBase.observeInputs.

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 before newObserver(Object) is called for the first observer.

Annotations
@Override
sizeback to summary
public int size()

Implements java.util.List.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Annotations
@Override
sourceChangedback to summary
private void sourceChanged(QuasiListChange<? extends E> qc)
org.reactfx.collection back to summary

private Class MemoizationListImpl.MemoizedView

extends LiveListBase<E>
implements UnmodifiableByDefaultLiveList<E>
Class Inheritance
All Implemented Interfaces
org.reactfx.collection.UnmodifiableByDefaultLiveList, org.reactfx.collection.UnmodifiableByDefaultList, org.reactfx.collection.AccessorListMethods, java.util.List, java.util.SequencedCollection, java.util.Collection, java.lang.Iterable, javafx.collections.ObservableList, javafx.beans.Observable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public E
get(int index)

Implements java.util.List.get.

Returns the element at the specified position in this list.

protected Subscription
observeInputs()

Implements abstract org.reactfx.ObservableBase.observeInputs.

Starts observing this observable's input(s), if any.

private void
private void
private void
public int
size()

Implements java.util.List.size.

Returns the number of elements in this list.

Constructor Detail

MemoizedViewback to summary
private MemoizedView()

Method Detail

getback to summary
public E get(int index)

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Annotations
@Override
observeInputsback to summary
protected Subscription observeInputs()

Implements abstract org.reactfx.ObservableBase.observeInputs.

Doc from org.reactfx.ObservableBase.observeInputs.

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 before newObserver(Object) is called for the first observer.

Annotations
@Override
prepareNotificationsback to summary
private void prepareNotifications(QuasiListChange<? extends E> change)
prepareNotificationsback to summary
private void prepareNotifications(QuasiListModification<? extends E> mod)
publishNotificationsback to summary
private void publishNotifications()
sizeback to summary
public int size()

Implements java.util.List.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Annotations
@Override