Interface FailableDoubleUnaryOperator<E extends java.lang.Throwable>
-
- Type Parameters:
E
- Thrown exception.
public interface FailableDoubleUnaryOperator<E extends java.lang.Throwable>
A functional interface likeDoubleUnaryOperator
that declares aThrowable
.- Since:
- 3.11
-
-
Field Summary
Fields Modifier and Type Field Description static FailableDoubleUnaryOperator
NOP
NOP singleton
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FailableDoubleUnaryOperator<E>
andThen(FailableDoubleUnaryOperator<E> after)
Returns a composedFailableDoubleUnaryOperator
likeDoubleUnaryOperator.andThen(DoubleUnaryOperator)
.double
applyAsDouble(double operand)
Applies this operator to the given operand.default FailableDoubleUnaryOperator<E>
compose(FailableDoubleUnaryOperator<E> before)
Returns a composedFailableDoubleUnaryOperator
likeDoubleUnaryOperator.compose(DoubleUnaryOperator)
.static <E extends java.lang.Throwable>
FailableDoubleUnaryOperator<E>identity()
Returns a unary operator that always returns its input argument.static <E extends java.lang.Throwable>
FailableDoubleUnaryOperator<E>nop()
Returns The NOP singleton.
-
-
-
Field Detail
-
NOP
static final FailableDoubleUnaryOperator NOP
NOP singleton
-
-
Method Detail
-
identity
static <E extends java.lang.Throwable> FailableDoubleUnaryOperator<E> identity()
Returns a unary operator that always returns its input argument.- Type Parameters:
E
- Thrown exception.- Returns:
- a unary operator that always returns its input argument
-
nop
static <E extends java.lang.Throwable> FailableDoubleUnaryOperator<E> nop()
Returns The NOP singleton.- Type Parameters:
E
- Thrown exception.- Returns:
- The NOP singleton.
-
andThen
default FailableDoubleUnaryOperator<E> andThen(FailableDoubleUnaryOperator<E> after)
Returns a composedFailableDoubleUnaryOperator
likeDoubleUnaryOperator.andThen(DoubleUnaryOperator)
.- Parameters:
after
- the operator to apply after this one.- Returns:
- a composed
FailableDoubleUnaryOperator
likeDoubleUnaryOperator.andThen(DoubleUnaryOperator)
. - Throws:
java.lang.NullPointerException
- if after is null.- See Also:
compose(FailableDoubleUnaryOperator)
-
applyAsDouble
double applyAsDouble(double operand) throws E extends java.lang.Throwable
Applies this operator to the given operand.
-
compose
default FailableDoubleUnaryOperator<E> compose(FailableDoubleUnaryOperator<E> before)
Returns a composedFailableDoubleUnaryOperator
likeDoubleUnaryOperator.compose(DoubleUnaryOperator)
.- Parameters:
before
- the operator to apply before this one.- Returns:
- a composed
FailableDoubleUnaryOperator
likeDoubleUnaryOperator.compose(DoubleUnaryOperator)
. - Throws:
java.lang.NullPointerException
- if before is null.- See Also:
andThen(FailableDoubleUnaryOperator)
-
-