Module com.iamsoft.util.ui
Class ObservableMean<T>
- java.lang.Object
-
- javafx.beans.value.ObservableValueBase<T>
-
- com.iamsoft.util.ui.javafx.collections.reduction.ObservableMean<T>
-
- Type Parameters:
T
- Item type.
- All Implemented Interfaces:
javafx.beans.Observable
,javafx.beans.value.ObservableValue<T>
public class ObservableMean<T> extends javafx.beans.value.ObservableValueBase<T>
Averages items in a list.
-
-
Constructor Summary
Constructors Constructor Description ObservableMean(javafx.collections.ObservableList<T> pList, BinaryOperator<T> pAddFunction, BiFunction<T,Integer,T> pDivideFunction, UnaryOperator<T> pNegateFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
-
-
-
Constructor Detail
-
ObservableMean
public ObservableMean(javafx.collections.ObservableList<T> pList, BinaryOperator<T> pAddFunction, BiFunction<T,Integer,T> pDivideFunction, UnaryOperator<T> pNegateFunction)
-
-
Method Detail
-
getValue
public T getValue()
-
-