T - the type of the operands and result of the operatorE - the type of exception could be thrown while performing operation@FunctionalInterface public interface BinaryOperatorEx<T,E extends java.lang.Throwable> extends BiFunctionEx<T,T,T,E>
BiFunctionEx for the case where the operands and the result are all of
the same type.
This is a functional interface
whose functional method is BiFunctionEx.apply(Object, Object).
BiFunctionEx,
UnaryOperatorEx| Modifier and Type | Method and Description |
|---|---|
default <C extends java.lang.Throwable> |
cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default UnaryOperatorEx<T,E> |
fixLeft(T t)
Build and return FunctionEx interface obtained from the bi-function by fixing first parameter with specified constant value.
|
default UnaryOperatorEx<T,E> |
fixRight(T u)
Build and return FunctionEx interface obtained from the bi-function by fixing second parameter with specified constant value.
|
static <T,E extends java.lang.Throwable> |
maxBy(java.util.Comparator<? super T> comparator)
Returns a
BinaryOperatorEx which returns the greater of two elements
according to the specified Comparator. |
static <T,E extends java.lang.Throwable> |
minBy(java.util.Comparator<? super T> comparator)
Returns a
BinaryOperatorEx which returns the lesser of two elements
according to the specified Comparator. |
default java.util.function.BinaryOperator<T> |
unchecked() |
default java.util.function.BinaryOperator<T> |
unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BinaryOperator<T> |
unchecked(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BinaryOperator<T> |
unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BinaryOperator<T> |
unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
andThen, apply, fixstatic <T,E extends java.lang.Throwable> BinaryOperatorEx<T,E> minBy(java.util.Comparator<? super T> comparator)
BinaryOperatorEx 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 Comparatorjava.lang.NullPointerException - if the argument is nullstatic <T,E extends java.lang.Throwable> BinaryOperatorEx<T,E> maxBy(java.util.Comparator<? super T> comparator)
BinaryOperatorEx 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 Comparatorjava.lang.NullPointerException - if the argument is nulldefault UnaryOperatorEx<T,E> fixRight(T u)
BiFunctionExdefault UnaryOperatorEx<T,E> fixLeft(T t)
BiFunctionExdefault <C extends java.lang.Throwable> BinaryOperatorEx<T,C> cover(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BinaryOperatorEx<T,C> cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BinaryOperatorEx<T,C> cover(java.util.function.Supplier<java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BinaryOperatorEx<T,C> cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default java.util.function.BinaryOperator<T> unchecked(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.BinaryOperator<T> unchecked()
default java.util.function.BinaryOperator<T> unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.BinaryOperator<T> unchecked(java.util.function.Supplier<java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.BinaryOperator<T> unchecked(java.util.function.Function<java.lang.Throwable,java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)