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
Constructors Constructor Description ObservableSum(javafx.collections.ObservableList<? extends T> pList, T pIdentity, BinaryOperator<T> pAddFunction, UnaryOperator<T> pNegateFunction)
Incrementally update after each change.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
-
-
-
Constructor Detail
-
ObservableSum
public ObservableSum(javafx.collections.ObservableList<? extends T> pList, T pIdentity, BinaryOperator<T> pAddFunction, UnaryOperator<T> pNegateFunction)
Incrementally update after each change.
-
-
Method Detail
-
getValue
public T getValue()
-
-