Package com.hazelcast.function
Interface BinaryOperatorEx<T>
- Type Parameters:
T
- the type of the operands and result of the operator
- All Superinterfaces:
BiFunction<T,
,T, T> BinaryOperator<T>
,Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Serializable
variant of java.util.function.BinaryOperator
which declares checked exception.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
Exception-declaring version ofBiFunction.apply(T, U)
.static <T> BinaryOperatorEx<T>
maxBy
(Comparator<? super T> comparator) Serializable
variant ofjava.util.function.BinaryOperator#maxBy(Comparator)
.static <T> BinaryOperatorEx<T>
minBy
(Comparator<? super T> comparator) Serializable
variant ofjava.util.function.BinaryOperator#minBy(Comparator)
.Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
applyEx
Exception-declaring version ofBiFunction.apply(T, U)
.- Throws:
Exception
- in case of any exceptional case
-
apply
- Specified by:
apply
in interfaceBiFunction<T,
T, T>
-
minBy
Serializable
variant ofjava.util.function.BinaryOperator#minBy(Comparator)
.- Type Parameters:
T
- the type of the input arguments of the comparator
-
maxBy
Serializable
variant ofjava.util.function.BinaryOperator#maxBy(Comparator)
.- Type Parameters:
T
- the type of the input arguments of the comparator
-