T
- the type of the operands and result of the operator@FunctionalInterface public interface BinaryOperatorEx<T> extends BinaryOperator<T>, Serializable
Serializable
variant of java.util.function.BinaryOperator
which declares checked exception.Modifier and Type | Method and Description |
---|---|
default T |
apply(T t1,
T t2) |
T |
applyEx(T t1,
T t2)
Exception-declaring version of
BiFunction.apply(T, U) . |
static <T> BinaryOperatorEx<T> |
maxBy(Comparator<? super T> comparator)
Serializable variant of java.util.function.BinaryOperator#maxBy(Comparator) . |
static <T> BinaryOperatorEx<T> |
minBy(Comparator<? super T> comparator)
Serializable variant of java.util.function.BinaryOperator#minBy(Comparator) . |
andThen
T applyEx(T t1, T t2) throws Exception
BiFunction.apply(T, U)
.Exception
- in case of any exceptional casestatic <T> BinaryOperatorEx<T> minBy(Comparator<? super T> comparator)
Serializable
variant of java.util.function.BinaryOperator#minBy(Comparator)
.minBy
in interface BinaryOperator<T>
T
- the type of the input arguments of the comparatorstatic <T> BinaryOperatorEx<T> maxBy(Comparator<? super T> comparator)
Serializable
variant of java.util.function.BinaryOperator#maxBy(Comparator)
.maxBy
in interface BinaryOperator<T>
T
- the type of the input arguments of the comparatorCopyright © 2023 Hazelcast, Inc.. All rights reserved.