Top Fields Constructors Methods
org.reactfx.collection

pack-priv Class MappedList<E, F>

Additional top-level class in compilation unit: DynamicallyMappedList.

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
Imports
java.util.List, java.util.function.Function, javafx.beans.value.ObservableValue, javafx.collections.ObservableList, org.reactfx.Subscription, org.reactfx.util.Lists, org.reactfx.value.Val

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
MappedList(ObservableList<? extends E> source, 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.

pack-priv static <E, F> QuasiListChange<F>
mappedChangeView(QuasiListChange<? extends E> change, Function<? super E, ? extends F> mapper)

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 Function<? super E, ? extends F> mapper
sourceback to summary
private final ObservableList<? extends E> source

Constructor Detail

MappedListback to summary
public MappedList(ObservableList<? extends E> source, 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
mappedChangeViewback to summary
pack-priv static <E, F> QuasiListChange<F> mappedChangeView(QuasiListChange<? extends E> change, Function<? super E, ? extends F> mapper)
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)