Module com.iamsoft.util.ui
Class ObservableSum<T>
java.lang.Object
javafx.beans.value.ObservableValueBase<T>
com.iamsoft.util.ui.javafx.collections.reduction.ObservableSum<T>
- Type Parameters:
T
- Item type.
- All Implemented Interfaces:
javafx.beans.Observable
,javafx.beans.value.ObservableValue<T>
public class ObservableSum<T>
extends javafx.beans.value.ObservableValueBase<T>
Sums items in a list.
-
Constructor Summary
ConstructorsConstructorDescriptionObservableSum
(javafx.collections.ObservableList<? extends T> pList, T pIdentity, BinaryOperator<T> pAddFunction, UnaryOperator<T> pNegateFunction) Incrementally update after each change. -
Method Summary
Methods inherited from class javafx.beans.value.ObservableValueBase
addListener, addListener, fireValueChangedEvent, removeListener, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javafx.beans.value.ObservableValue
flatMap, map, orElse, when
-
Constructor Details
-
ObservableSum
public ObservableSum(javafx.collections.ObservableList<? extends T> pList, T pIdentity, BinaryOperator<T> pAddFunction, UnaryOperator<T> pNegateFunction) Incrementally update after each change.
-
-
Method Details
-
getValue
-