public final class CollectionBindings extends Object
Modifier and Type | Method and Description |
---|---|
static NumberBinding |
averageInList(ObservableList<? extends Number> items,
Number defaultValue)
Creates a number binding that computes the average value amongst elements.
|
static NumberBinding |
averageInList(ObservableList<? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the average value amongst elements.
|
static <T> NumberBinding |
averageInList(ObservableList<T> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the average value amongst elements.
|
static <T> NumberBinding |
averageInList(ObservableList<T> items,
Number defaultValue,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the average value amongst elements.
|
static <T> NumberBinding |
averageInList(ObservableList<T> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the average value amongst elements.
|
static <T> NumberBinding |
averageInList(ObservableList<T> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the average value amongst elements.
|
static <K> NumberBinding |
averageInMap(ObservableMap<K,? extends Number> items,
Number defaultValue)
Creates a number binding that computes the average value amongst values.
|
static <K> NumberBinding |
averageInMap(ObservableMap<K,? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the average value amongst values.
|
static <K,V> NumberBinding |
averageInMap(ObservableMap<K,V> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super V>> mapper)
Creates a number binding that computes the average value amongst values.
|
static <K,V> NumberBinding |
averageInMap(ObservableMap<K,V> items,
Number defaultValue,
ToDoubleFunction<? super V> mapper)
Creates a number binding that computes the average value amongst values.
|
static <K,V> NumberBinding |
averageInMap(ObservableMap<K,V> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super V>> mapper)
Creates a number binding that computes the average value amongst values.
|
static <K,V> NumberBinding |
averageInMap(ObservableMap<K,V> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super V> mapper)
Creates a number binding that computes the average value amongst values.
|
static NumberBinding |
averageInSet(ObservableSet<? extends Number> items,
Number defaultValue)
Creates a number binding that computes the average value amongst elements.
|
static NumberBinding |
averageInSet(ObservableSet<? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the average value amongst elements.
|
static <T> NumberBinding |
averageInSet(ObservableSet<T> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the average value amongst elements.
|
static <T> NumberBinding |
averageInSet(ObservableSet<T> items,
Number defaultValue,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the average value amongst elements.
|
static <T> NumberBinding |
averageInSet(ObservableSet<T> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the average value amongst elements.
|
static <T> NumberBinding |
averageInSet(ObservableSet<T> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the average value amongst elements.
|
static StringBinding |
joinList(ObservableList<?> items,
ObservableValue<String> delimiter)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static StringBinding |
joinList(ObservableList<?> items,
String delimiter)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static <T> StringBinding |
joinList(ObservableList<T> items,
ObservableValue<String> delimiter,
ObservableValue<Function<? super T,String>> mapper)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static <T> StringBinding |
joinList(ObservableList<T> items,
String delimiter,
Function<? super T,String> mapper)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static <K,V> StringBinding |
joinMap(ObservableMap<K,V> items,
ObservableValue<String> delimiter)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static <K,V> StringBinding |
joinMap(ObservableMap<K,V> items,
ObservableValue<String> delimiter,
ObservableValue<Function<Map.Entry<K,V>,String>> mapper)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static <K,V> StringBinding |
joinMap(ObservableMap<K,V> items,
String delimiter)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static <K,V> StringBinding |
joinMap(ObservableMap<K,V> items,
String delimiter,
Function<Map.Entry<K,V>,String> mapper)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static StringBinding |
joinSet(ObservableSet<?> items,
ObservableValue<String> delimiter)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static StringBinding |
joinSet(ObservableSet<?> items,
String delimiter)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static <T> StringBinding |
joinSet(ObservableSet<T> items,
ObservableValue<String> delimiter,
ObservableValue<Function<? super T,String>> mapper)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static <T> StringBinding |
joinSet(ObservableSet<T> items,
String delimiter,
Function<? super T,String> mapper)
Creates a string binding that constructs a sequence of characters separated by a delimiter.
|
static NumberBinding |
maxInList(ObservableList<? extends Number> items,
Number defaultValue)
Creates a number binding that computes the maximum value amongst elements.
|
static NumberBinding |
maxInList(ObservableList<? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the maximum value amongst elements.
|
static <T> NumberBinding |
maxInList(ObservableList<T> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the maximum value amongst elements.
|
static <T> NumberBinding |
maxInList(ObservableList<T> items,
Number defaultValue,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the maximum value amongst elements.
|
static <T> NumberBinding |
maxInList(ObservableList<T> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the maximum value amongst elements.
|
static <T> NumberBinding |
maxInList(ObservableList<T> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the maximum value amongst elements.
|
static <K> NumberBinding |
maxInMap(ObservableMap<K,? extends Number> items,
Number defaultValue)
Creates a number binding that computes the maximum value amongst values.
|
static <K> NumberBinding |
maxInMap(ObservableMap<K,? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the maximum value amongst values.
|
static <K,V> NumberBinding |
maxInMap(ObservableMap<K,V> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super V>> mapper)
Creates a number binding that computes the maximum value amongst values.
|
static <K,V> NumberBinding |
maxInMap(ObservableMap<K,V> items,
Number defaultValue,
ToDoubleFunction<? super V> mapper)
Creates a number binding that computes the maximum value amongst values.
|
static <K,V> NumberBinding |
maxInMap(ObservableMap<K,V> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super V>> mapper)
Creates a number binding that computes the maximum value amongst values.
|
static <K,V> NumberBinding |
maxInMap(ObservableMap<K,V> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super V> mapper)
Creates a number binding that computes the maximum value amongst values.
|
static NumberBinding |
maxInSet(ObservableSet<? extends Number> items,
Number defaultValue)
Creates a number binding that computes the maximum value amongst elements.
|
static NumberBinding |
maxInSet(ObservableSet<? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the maximum value amongst elements.
|
static <T> NumberBinding |
maxInSet(ObservableSet<T> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the maximum value amongst elements.
|
static <T> NumberBinding |
maxInSet(ObservableSet<T> items,
Number defaultValue,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the maximum value amongst elements.
|
static <T> NumberBinding |
maxInSet(ObservableSet<T> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the maximum value amongst elements.
|
static <T> NumberBinding |
maxInSet(ObservableSet<T> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the maximum value amongst elements.
|
static NumberBinding |
minInList(ObservableList<? extends Number> items,
Number defaultValue)
Creates a number binding that computes the minimum value amongst elements.
|
static NumberBinding |
minInList(ObservableList<? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the minimum value amongst elements.
|
static <T> NumberBinding |
minInList(ObservableList<T> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the minimum value amongst elements.
|
static <T> NumberBinding |
minInList(ObservableList<T> items,
Number defaultValue,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the minimum value amongst elements.
|
static <T> NumberBinding |
minInList(ObservableList<T> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the minimum value amongst elements.
|
static <T> NumberBinding |
minInList(ObservableList<T> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the minimum value amongst elements.
|
static <K> NumberBinding |
minInMap(ObservableMap<K,? extends Number> items,
Number defaultValue)
Creates a number binding that computes the minimum value amongst values.
|
static <K> NumberBinding |
minInMap(ObservableMap<K,? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the minimum value amongst values.
|
static <K,V> NumberBinding |
minInMap(ObservableMap<K,V> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super V>> mapper)
Creates a number binding that computes the minimum value amongst values.
|
static <K,V> NumberBinding |
minInMap(ObservableMap<K,V> items,
Number defaultValue,
ToDoubleFunction<? super V> mapper)
Creates a number binding that computes the minimum value amongst values.
|
static <K,V> NumberBinding |
minInMap(ObservableMap<K,V> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super V>> mapper)
Creates a number binding that computes the minimum value amongst values.
|
static <K,V> NumberBinding |
minInMap(ObservableMap<K,V> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super V> mapper)
Creates a number binding that computes the minimum value amongst values.
|
static NumberBinding |
minInSet(ObservableSet<? extends Number> items,
Number defaultValue)
Creates a number binding that computes the minimum value amongst elements.
|
static NumberBinding |
minInSet(ObservableSet<? extends Number> items,
Supplier<? extends Number> supplier)
Creates a number binding that computes the minimum value amongst elements.
|
static <T> NumberBinding |
minInSet(ObservableSet<T> items,
Number defaultValue,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the minimum value amongst elements.
|
static <T> NumberBinding |
minInSet(ObservableSet<T> items,
Number defaultValue,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the minimum value amongst elements.
|
static <T> NumberBinding |
minInSet(ObservableSet<T> items,
Supplier<? extends Number> supplier,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that computes the minimum value amongst elements.
|
static <T> NumberBinding |
minInSet(ObservableSet<T> items,
Supplier<? extends Number> supplier,
ToDoubleFunction<? super T> mapper)
Creates a number binding that computes the minimum value amongst elements.
|
static NumberBinding |
sumOfList(ObservableList<? extends Number> items)
Creates a number binding that contains the sum of the items of the given observable list.
|
static <T> NumberBinding |
sumOfList(ObservableList<T> items,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that contains the sum of the items of the given observable list.
|
static <T> NumberBinding |
sumOfList(ObservableList<T> items,
ToDoubleFunction<? super T> mapper)
Creates a number binding that contains the sum of the items of the given observable list.
|
static <K> NumberBinding |
sumOfMap(ObservableMap<K,? extends Number> items)
Creates a number binding that contains the sum of the values of the given observable map.
|
static <K,V> NumberBinding |
sumOfMap(ObservableMap<K,V> items,
ObservableValue<ToDoubleFunction<? super V>> mapper)
Creates a number binding that contains the sum of the values of the given observable map.
|
static <K,V> NumberBinding |
sumOfMap(ObservableMap<K,V> items,
ToDoubleFunction<? super V> mapper)
Creates a number binding that contains the sum of the values of the given observable map.
|
static NumberBinding |
sumOfSet(ObservableSet<? extends Number> items)
Creates a number binding that contains the sum of the items of the given observable set.
|
static <T> NumberBinding |
sumOfSet(ObservableSet<T> items,
ObservableValue<ToDoubleFunction<? super T>> mapper)
Creates a number binding that contains the sum of the items of the given observable set.
|
static <T> NumberBinding |
sumOfSet(ObservableSet<T> items,
ToDoubleFunction<? super T> mapper)
Creates a number binding that contains the sum of the items of the given observable set.
|
@Nonnull public static StringBinding joinList(@Nonnull ObservableList<?> items, @Nullable String delimiter)
items
- the observable list of items.delimiter
- the sequence of characters to be used between each element.@Nonnull public static <T> StringBinding joinList(@Nonnull ObservableList<T> items, @Nullable String delimiter, @Nonnull Function<? super T,String> mapper)
items
- the observable list of items.delimiter
- the sequence of characters to be used between each element.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static StringBinding joinList(@Nonnull ObservableList<?> items, @Nonnull ObservableValue<String> delimiter)
items
- the observable list of items.delimiter
- the sequence of characters to be used between each element.@Nonnull public static <T> StringBinding joinList(@Nonnull ObservableList<T> items, @Nonnull ObservableValue<String> delimiter, @Nonnull ObservableValue<Function<? super T,String>> mapper)
items
- the observable list of items.delimiter
- the sequence of characters to be used between each element.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static StringBinding joinSet(@Nonnull ObservableSet<?> items, @Nullable String delimiter)
items
- the observable set of items.delimiter
- the sequence of characters to be used between each element.@Nonnull public static <T> StringBinding joinSet(@Nonnull ObservableSet<T> items, @Nullable String delimiter, @Nonnull Function<? super T,String> mapper)
items
- the observable set of items.delimiter
- the sequence of characters to be used between each element.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static StringBinding joinSet(@Nonnull ObservableSet<?> items, @Nonnull ObservableValue<String> delimiter)
items
- the observable set of items.delimiter
- the sequence of characters to be used between each element.@Nonnull public static <T> StringBinding joinSet(@Nonnull ObservableSet<T> items, @Nonnull ObservableValue<String> delimiter, @Nonnull ObservableValue<Function<? super T,String>> mapper)
items
- the observable set of items.delimiter
- the sequence of characters to be used between each element.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <K,V> StringBinding joinMap(@Nonnull ObservableMap<K,V> items, @Nullable String delimiter)
items
- the observable map of items.delimiter
- the sequence of characters to be used between each entry.@Nonnull public static <K,V> StringBinding joinMap(@Nonnull ObservableMap<K,V> items, @Nullable String delimiter, @Nonnull Function<Map.Entry<K,V>,String> mapper)
items
- the observable map of items.delimiter
- the sequence of characters to be used between each element.mapper
- a non-interfering, stateless function to apply to the each entry.@Nonnull public static <K,V> StringBinding joinMap(@Nonnull ObservableMap<K,V> items, @Nonnull ObservableValue<String> delimiter)
items
- the observable map of items.delimiter
- the sequence of characters to be used between each entry.@Nonnull public static <K,V> StringBinding joinMap(@Nonnull ObservableMap<K,V> items, @Nonnull ObservableValue<String> delimiter, @Nonnull ObservableValue<Function<Map.Entry<K,V>,String>> mapper)
items
- the observable map of items.delimiter
- the sequence of characters to be used between each element.mapper
- a non-interfering, stateless function to apply to the each entry.@Nonnull public static NumberBinding minInList(@Nonnull ObservableList<? extends Number> items, @Nonnull Number defaultValue)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static NumberBinding minInList(@Nonnull ObservableList<? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static NumberBinding maxInList(@Nonnull ObservableList<? extends Number> items, @Nonnull Number defaultValue)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static NumberBinding maxInList(@Nonnull ObservableList<? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static NumberBinding averageInList(@Nonnull ObservableList<? extends Number> items, @Nonnull Number defaultValue)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static NumberBinding averageInList(@Nonnull ObservableList<? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static NumberBinding sumOfList(@Nonnull ObservableList<? extends Number> items)
items
- the observable list of items.@Nonnull public static <T> NumberBinding minInList(@Nonnull ObservableList<T> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding minInList(@Nonnull ObservableList<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding maxInList(@Nonnull ObservableList<T> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding maxInList(@Nonnull ObservableList<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding averageInList(@Nonnull ObservableList<T> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding averageInList(@Nonnull ObservableList<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding sumOfList(@Nonnull ObservableList<T> items, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable list of items.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding minInList(@Nonnull ObservableList<T> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding minInList(@Nonnull ObservableList<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding maxInList(@Nonnull ObservableList<T> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding maxInList(@Nonnull ObservableList<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding averageInList(@Nonnull ObservableList<T> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable list of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding averageInList(@Nonnull ObservableList<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable list of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding sumOfList(@Nonnull ObservableList<T> items, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable list of items.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static NumberBinding minInSet(@Nonnull ObservableSet<? extends Number> items, @Nonnull Number defaultValue)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static NumberBinding minInSet(@Nonnull ObservableSet<? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static NumberBinding maxInSet(@Nonnull ObservableSet<? extends Number> items, @Nonnull Number defaultValue)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static NumberBinding maxInSet(@Nonnull ObservableSet<? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static NumberBinding averageInSet(@Nonnull ObservableSet<? extends Number> items, @Nonnull Number defaultValue)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static NumberBinding averageInSet(@Nonnull ObservableSet<? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static NumberBinding sumOfSet(@Nonnull ObservableSet<? extends Number> items)
items
- the observable set of items.@Nonnull public static <T> NumberBinding minInSet(@Nonnull ObservableSet<T> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding minInSet(@Nonnull ObservableSet<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding maxInSet(@Nonnull ObservableSet<T> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding maxInSet(@Nonnull ObservableSet<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding averageInSet(@Nonnull ObservableSet<T> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding averageInSet(@Nonnull ObservableSet<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding sumOfSet(@Nonnull ObservableSet<T> items, @Nonnull ToDoubleFunction<? super T> mapper)
items
- the observable set of items.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding minInSet(@Nonnull ObservableSet<T> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding minInSet(@Nonnull ObservableSet<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding maxInSet(@Nonnull ObservableSet<T> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding maxInSet(@Nonnull ObservableSet<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding averageInSet(@Nonnull ObservableSet<T> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable set of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding averageInSet(@Nonnull ObservableSet<T> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable set of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <T> NumberBinding sumOfSet(@Nonnull ObservableSet<T> items, @Nonnull ObservableValue<ToDoubleFunction<? super T>> mapper)
items
- the observable set of items.mapper
- a non-interfering, stateless function to apply to the each element.@Nonnull public static <K> NumberBinding minInMap(@Nonnull ObservableMap<K,? extends Number> items, @Nonnull Number defaultValue)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static <K> NumberBinding minInMap(@Nonnull ObservableMap<K,? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static <K> NumberBinding maxInMap(@Nonnull ObservableMap<K,? extends Number> items, @Nonnull Number defaultValue)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static <K> NumberBinding maxInMap(@Nonnull ObservableMap<K,? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static <K> NumberBinding averageInMap(@Nonnull ObservableMap<K,? extends Number> items, @Nonnull Number defaultValue)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.@Nonnull public static <K> NumberBinding averageInMap(@Nonnull ObservableMap<K,? extends Number> items, @Nonnull Supplier<? extends Number> supplier)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.@Nonnull public static <K> NumberBinding sumOfMap(@Nonnull ObservableMap<K,? extends Number> items)
items
- the observable map of items.@Nonnull public static <K,V> NumberBinding minInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super V> mapper)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding minInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super V> mapper)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding maxInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super V> mapper)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding maxInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super V> mapper)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding averageInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Number defaultValue, @Nonnull ToDoubleFunction<? super V> mapper)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding averageInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ToDoubleFunction<? super V> mapper)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding sumOfMap(@Nonnull ObservableMap<K,V> items, @Nonnull ToDoubleFunction<? super V> mapper)
items
- the observable map of items.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding minInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super V>> mapper)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding minInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super V>> mapper)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding maxInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super V>> mapper)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding maxInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super V>> mapper)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding averageInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Number defaultValue, @Nonnull ObservableValue<ToDoubleFunction<? super V>> mapper)
items
- the observable map of items.defaultValue
- the value to be returned if there is no value present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding averageInMap(@Nonnull ObservableMap<K,V> items, @Nonnull Supplier<? extends Number> supplier, @Nonnull ObservableValue<ToDoubleFunction<? super V>> mapper)
items
- the observable map of items.supplier
- a Supplier
whose result is returned if no value is present.mapper
- a non-interfering, stateless function to apply to the each value.@Nonnull public static <K,V> NumberBinding sumOfMap(@Nonnull ObservableMap<K,V> items, @Nonnull ObservableValue<ToDoubleFunction<? super V>> mapper)
items
- the observable map of items.mapper
- a non-interfering, stateless function to apply to the each value.