Interface FailableDoubleUnaryOperator<E extends Throwable>
- Type Parameters:
E- The kind of thrown exception or error.
public interface FailableDoubleUnaryOperator<E extends Throwable>
A functional interface like
DoubleUnaryOperator that declares a Throwable.- Since:
- 3.11
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault FailableDoubleUnaryOperator<E> andThen(FailableDoubleUnaryOperator<E> after) Returns a composedFailableDoubleUnaryOperatorlikeDoubleUnaryOperator.andThen(DoubleUnaryOperator).doubleapplyAsDouble(double operand) Applies this operator to the given operand.default FailableDoubleUnaryOperator<E> compose(FailableDoubleUnaryOperator<E> before) Returns a composedFailableDoubleUnaryOperatorlikeDoubleUnaryOperator.compose(DoubleUnaryOperator).static <E extends Throwable>
FailableDoubleUnaryOperator<E> identity()Returns a unary operator that always returns its input argument.static <E extends Throwable>
FailableDoubleUnaryOperator<E> nop()Gets the NOP singleton.
-
Field Details
-
NOP
NOP singleton
-
-
Method Details
-
identity
Returns a unary operator that always returns its input argument.- Type Parameters:
E- The kind of thrown exception or error.- Returns:
- A unary operator that always returns its input argument
-
nop
Gets the NOP singleton.- Type Parameters:
E- The kind of thrown exception or error.- Returns:
- The NOP singleton.
-
andThen
Returns a composedFailableDoubleUnaryOperatorlikeDoubleUnaryOperator.andThen(DoubleUnaryOperator).- Parameters:
after- The operator to apply after this one.- Returns:
- A composed
FailableDoubleUnaryOperatorlikeDoubleUnaryOperator.andThen(DoubleUnaryOperator). - Throws:
NullPointerException- Thrown if after is null.- See Also:
-
applyAsDouble
Applies this operator to the given operand.- Parameters:
operand- The operand- Returns:
- The operator result
- Throws:
E- Thrown when a consumer fails.
-
compose
Returns a composedFailableDoubleUnaryOperatorlikeDoubleUnaryOperator.compose(DoubleUnaryOperator).- Parameters:
before- The operator to apply before this one.- Returns:
- A composed
FailableDoubleUnaryOperatorlikeDoubleUnaryOperator.compose(DoubleUnaryOperator). - Throws:
NullPointerException- Thrown if before is null.- See Also:
-