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

    Modifier and Type
    Method
    Description
     

    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.Observable

    subscribe

    Methods inherited from interface javafx.beans.value.ObservableValue

    flatMap, map, orElse, subscribe, subscribe, when
  • Constructor Details

  • Method Details

    • getValue

      public T getValue()