@FunctionalInterface public interface SerializableBinaryOperator<T> extends BinaryOperator<T>, Serializable
SerializableBinaryOperator| Modifier and Type | Method and Description |
|---|---|
static <T> SerializableBinaryOperator<T> |
maxBy(Comparator<? super T> comparator)
Returns a
SerializableBinaryOperator which returns the greater of
two elements according to the specified Comparator. |
static <T> SerializableBinaryOperator<T> |
minBy(Comparator<? super T> comparator)
Returns a
SerializableBinaryOperator which returns the lesser of
two elements according to the specified Comparator. |
andThen, applystatic <T> SerializableBinaryOperator<T> minBy(Comparator<? super T> comparator)
SerializableBinaryOperator 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 valuesSerializableBinaryOperator which returns the lesser of
its operands, according to the supplied ComparatorNullPointerException - if the argument is nullstatic <T> SerializableBinaryOperator<T> maxBy(Comparator<? super T> comparator)
SerializableBinaryOperator 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 valuesSerializableBinaryOperator which returns the greater of
its operands, according to the supplied ComparatorNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.