Package com.hazelcast.function
Interface BinaryOperatorEx<T>
-
- Type Parameters:
T
- the type of the operands and result of the operator
- All Superinterfaces:
java.util.function.BiFunction<T,T,T>
,java.util.function.BinaryOperator<T>
,java.io.Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface BinaryOperatorEx<T> extends java.util.function.BinaryOperator<T>, java.io.Serializable
Serializable
variant ofjava.util.function.BinaryOperator
which declares checked exception.- Since:
- 4.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default T
apply(T t1, T t2)
T
applyEx(T t1, T t2)
Exception-declaring version ofBiFunction.apply(T, U)
.static <T> BinaryOperatorEx<T>
maxBy(java.util.Comparator<? super T> comparator)
Serializable
variant ofjava.util.function.BinaryOperator#maxBy(Comparator)
.static <T> BinaryOperatorEx<T>
minBy(java.util.Comparator<? super T> comparator)
Serializable
variant ofjava.util.function.BinaryOperator#minBy(Comparator)
.
-
-
-
Method Detail
-
applyEx
T applyEx(T t1, T t2) throws java.lang.Exception
Exception-declaring version ofBiFunction.apply(T, U)
.- Throws:
java.lang.Exception
- in case of any exceptional case
-
minBy
static <T> BinaryOperatorEx<T> minBy(java.util.Comparator<? super T> comparator)
Serializable
variant ofjava.util.function.BinaryOperator#minBy(Comparator)
.- Type Parameters:
T
- the type of the input arguments of the comparator
-
maxBy
static <T> BinaryOperatorEx<T> maxBy(java.util.Comparator<? super T> comparator)
Serializable
variant ofjava.util.function.BinaryOperator#maxBy(Comparator)
.- Type Parameters:
T
- the type of the input arguments of the comparator
-
-