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
ConstructorsConstructorDescriptionObservableMean
(javafx.collections.ObservableList<T> pList, BinaryOperator<T> pAddFunction, BiFunction<T, Integer, T> pDivideFunction, UnaryOperator<T> pNegateFunction) -
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
-
ObservableMean
public ObservableMean(javafx.collections.ObservableList<T> pList, BinaryOperator<T> pAddFunction, BiFunction<T, Integer, T> pDivideFunction, UnaryOperator<T> pNegateFunction)
-
-
Method Details
-
getValue
-