T - the type of the operands and result of the operator@FunctionalInterface public static interface Remote.BinaryOperator<T> extends Remote.BiFunction<T,T,T>, BinaryOperator<T>, Serializable
BiFunction for the case where the operands and the result are all
of the same type.
This is a functional interface
whose functional method is BiFunction.apply(Object, Object).
BiFunction,
Remote.UnaryOperator| Modifier and Type | Method and Description |
|---|---|
static <K,V,M extends Map<K,V>> |
mapMerger(BinaryOperator<V> mergeFunction)
BinaryOperator<Map> that merges the contents of its right
argument into its left argument, using the provided merge function to
handle duplicate keys. |
static <K,V,M extends Map<K,V>> |
mapMerger(Remote.BinaryOperator<V> mergeFunction)
BinaryOperator<Map> that merges the contents of its right
argument into its left argument, using the provided merge function to
handle duplicate keys. |
static <T> Remote.BinaryOperator<T> |
maxBy(Comparator<? super T> comparator)
Returns a
BinaryOperator which returns the greater of two
elements according to the specified Comparator. |
static <T> Remote.BinaryOperator<T> |
maxBy(Remote.Comparator<? super T> comparator)
Returns a
BinaryOperator which returns the greater of two
elements according to the specified Comparator. |
static <T> Remote.BinaryOperator<T> |
minBy(Comparator<? super T> comparator)
Returns a
BinaryOperator which returns the lesser of two
elements according to the specified Comparator. |
static <T> Remote.BinaryOperator<T> |
minBy(Remote.Comparator<? super T> comparator)
Returns a
BinaryOperator which returns the lesser of two
elements according to the specified Comparator. |
andThenandThen, applystatic <T> Remote.BinaryOperator<T> minBy(Remote.Comparator<? super T> comparator)
BinaryOperator which returns the lesser of two
elements according to the specified Comparator.T - the type of the input arguments of the comparatorcomparator - a Comparator for comparing the two valuesBinaryOperator which returns the lesser of its
operands, according to the supplied ComparatorNullPointerException - if the argument is nullstatic <T> Remote.BinaryOperator<T> minBy(Comparator<? super T> comparator)
BinaryOperator which returns the lesser of two
elements according to the specified Comparator.minBy in interface BinaryOperator<T>T - the type of the input arguments of the comparatorcomparator - a Comparator for comparing the two valuesBinaryOperator which returns the lesser of its
operands, according to the supplied ComparatorNullPointerException - if the argument is nullstatic <T> Remote.BinaryOperator<T> maxBy(Remote.Comparator<? super T> comparator)
BinaryOperator which returns the greater of two
elements according to the specified Comparator.T - the type of the input arguments of the comparatorcomparator - a Comparator for comparing the two valuesBinaryOperator which returns the greater of its
operands, according to the supplied ComparatorNullPointerException - if the argument is nullstatic <T> Remote.BinaryOperator<T> maxBy(Comparator<? super T> comparator)
BinaryOperator which returns the greater of two
elements according to the specified Comparator.maxBy in interface BinaryOperator<T>T - the type of the input arguments of the comparatorcomparator - a Comparator for comparing the two valuesBinaryOperator which returns the greater of its
operands, according to the supplied ComparatorNullPointerException - if the argument is nullstatic <K,V,M extends Map<K,V>> Remote.BinaryOperator<M> mapMerger(Remote.BinaryOperator<V> mergeFunction)
BinaryOperator<Map> that merges the contents of its right
argument into its left argument, using the provided merge function to
handle duplicate keys.K - type of the map keysV - type of the map valuesM - type of the mapmergeFunction - A merge function suitable for Map.merge()static <K,V,M extends Map<K,V>> Remote.BinaryOperator<M> mapMerger(BinaryOperator<V> mergeFunction)
BinaryOperator<Map> that merges the contents of its right
argument into its left argument, using the provided merge function to
handle duplicate keys.K - type of the map keysV - type of the map valuesM - type of the mapmergeFunction - A merge function suitable for Map.merge()