T
- Type of element in list.public class MedianBinding<T>
extends javafx.beans.binding.ObjectBinding<T>
Constructor and Description |
---|
MedianBinding(javafx.collections.ObservableList<? extends T> pList,
BinaryOperator<T> pAddFunction,
BiFunction<T,Integer,? extends T> pDivideFunction) |
MedianBinding(javafx.collections.ObservableList<? extends T> pList,
BinaryOperator<T> pAddFunction,
BiFunction<T,Integer,? extends T> pDivideFunction,
Comparator<? super T> pComparator) |
Modifier and Type | Method and Description |
---|---|
protected T |
computeValue() |
static <T> T |
computeValue(List<? extends T> pList,
BinaryOperator<T> pAddFunction,
BiFunction<T,Integer,? extends T> pDivideFunction,
Comparator<? super T> pComparator) |
addListener, addListener, bind, dispose, get, getDependencies, invalidate, isValid, onInvalidating, removeListener, removeListener, toString, unbind
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
public MedianBinding(javafx.collections.ObservableList<? extends T> pList, BinaryOperator<T> pAddFunction, BiFunction<T,Integer,? extends T> pDivideFunction)
public MedianBinding(javafx.collections.ObservableList<? extends T> pList, BinaryOperator<T> pAddFunction, BiFunction<T,Integer,? extends T> pDivideFunction, Comparator<? super T> pComparator)
pComparator
- Comparator for sorting list or null if list is pre-sorted.protected T computeValue()
computeValue
in class javafx.beans.binding.ObjectBinding<T>
public static <T> T computeValue(List<? extends T> pList, BinaryOperator<T> pAddFunction, BiFunction<T,Integer,? extends T> pDivideFunction, Comparator<? super T> pComparator)
Copyright © 2023. All rights reserved.