Top Fields Constructors Methods
org.reactfx.collection

pack-priv Class DynamicallyMappedList<E, F>

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

extends LiveListBase<F>
implements UnmodifiableByDefaultLiveList<F>
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

Field Summary

Modifier and TypeField and Description
private final Val<? extends Function<? super E, ? extends F>>
private final ObservableList<? extends E>

Constructor Summary

AccessConstructor and Description
public
DynamicallyMappedList(ObservableList<? extends E> source, ObservableValue<? extends Function<? super E, ? extends F>> mapper)

Method Summary

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

Implements java.util.List.get.

Returns the element at the specified position in this list.

private void
mapperInvalidated(Function<? super E, ? extends F> oldMapper)

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> change)

Field Detail

mapperback to summary
private final Val<? extends Function<? super E, ? extends F>> mapper
sourceback to summary
private final ObservableList<? extends E> source

Constructor Detail

DynamicallyMappedListback to summary
public DynamicallyMappedList(ObservableList<? extends E> source, ObservableValue<? extends Function<? super E, ? extends F>> mapper)

Method Detail

getback to summary
public F 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
mapperInvalidatedback to summary
private void mapperInvalidated(Function<? super E, ? extends F> oldMapper)
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> change)