Top Fields Constructors Methods
org.reactfx.collection

pack-priv Class ListReduction<T>

Additional top-level class in compilation unit: ListRangeReduction.

extends ValBase<T>
Class Inheritance
Known Direct Subclasses
org.reactfx.collection.ListRangeReduction
Imports
java.util.function.BinaryOperator, javafx.beans.value.ObservableValue, javafx.collections.ObservableList, javafx.scene.control.IndexRange, org.reactfx.Subscription, org.reactfx.util.Experimental, .FingerTree, .ToSemigroup, org.reactfx.value.Val, .ValBase

Field Summary

Modifier and TypeField and Description
private final ObservableList<T>
private final ToSemigroup<T, T>
private final BinaryOperator<T>
private FingerTree<T, T>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected final T
protected Subscription
connect()

Implements abstract org.reactfx.value.ValBase.connect.

Implementation of this method should start observing inputs.

protected int
getFrom(int max)

protected int
getTo(int max)

Inherited from org.reactfx.value.ValBase:
getValueinvalidatenewObserverobserveInputs

Field Detail

inputback to summary
private final ObservableList<T> input
monoidback to summary
private final ToSemigroup<T, T> monoid
reductionback to summary
private final BinaryOperator<T> reduction
treeback to summary
private FingerTree<T, T> tree

Constructor Detail

ListReductionback to summary
pack-priv ListReduction(ObservableList<T> input, BinaryOperator<T> reduction)

Method Detail

computeValueback to summary
protected final T computeValue()

Implements abstract org.reactfx.value.ValBase.computeValue.

Annotations
@Override
connectback to summary
protected Subscription connect()

Implements abstract org.reactfx.value.ValBase.connect.

Doc from org.reactfx.value.ValBase.connect.

Implementation of this method should start observing inputs. If the value of this Val may change as a result of input change, the corresponding input observer should call invalidate() to notify observers of this Val. By the time of calling invalidate(), the input observer must have already updated any internal state of this Val, so that a subsequent call to computeValue() returns the current value of this Val.

Annotations
@Override
getFromback to summary
protected int getFrom(int max)
getToback to summary
protected int getTo(int max)