E - the type of exception could be thrown while performing operation@FunctionalInterface
public interface DoubleUnaryOperatorEx<E extends java.lang.Throwable>
double-valued operand that produces
a double-valued result. This is the primitive type specialization of
UnaryOperatorEx for double.
This is a functional interface
whose functional method is applyAsDouble(double).
UnaryOperatorEx| Modifier and Type | Method and Description |
|---|---|
default DoubleUnaryOperatorEx<E> |
andThen(DoubleUnaryOperatorEx<E> after)
Returns a composed operator that first applies this operator to
its input, and then applies the
after operator to the result. |
double |
applyAsDouble(double operand)
Applies this operator to the given operand.
|
default DoubleUnaryOperatorEx<E> |
compose(DoubleUnaryOperatorEx<E> before)
Returns a composed operator that first applies the
before
operator to its input, and then applies this operator to the result. |
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 DoubleSupplierEx<E> |
fix(double operand) |
static <E extends java.lang.Throwable> |
identity()
Returns a unary operator that always returns its input argument.
|
default java.util.function.DoubleUnaryOperator |
unchecked() |
default java.util.function.DoubleUnaryOperator |
unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.DoubleUnaryOperator |
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.DoubleUnaryOperator |
unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.DoubleUnaryOperator |
unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
static <E extends java.lang.Throwable> DoubleUnaryOperatorEx<E> identity()
double applyAsDouble(double operand)
throws E extends java.lang.Throwable
operand - the operandE extends java.lang.Throwabledefault DoubleUnaryOperatorEx<E> compose(DoubleUnaryOperatorEx<E> before)
before
operator to its input, and then applies this operator to the result.
If evaluation of either operator throws an exception, it is relayed to
the caller of the composed operator.before - the operator to apply before this operator is appliedbefore
operator and then applies this operatorjava.lang.NullPointerException - if before is nullandThen(DoubleUnaryOperatorEx)default DoubleUnaryOperatorEx<E> andThen(DoubleUnaryOperatorEx<E> after)
after operator to the result.
If evaluation of either operator throws an exception, it is relayed to
the caller of the composed operator.after - the operator to apply after this operator is appliedafter operatorjava.lang.NullPointerException - if after is nullcompose(DoubleUnaryOperatorEx)default DoubleSupplierEx<E> fix(double operand)
default <C extends java.lang.Throwable> DoubleUnaryOperatorEx<C> cover(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> DoubleUnaryOperatorEx<C> cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> DoubleUnaryOperatorEx<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> DoubleUnaryOperatorEx<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.DoubleUnaryOperator unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.DoubleUnaryOperator unchecked()
default java.util.function.DoubleUnaryOperator unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.DoubleUnaryOperator 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.DoubleUnaryOperator 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)