FailableDoubleUnaryOperator¶
- public abstract interface org.apache.commons.lang3.function.FailableDoubleUnaryOperator<E extends Throwable>[source]¶
A functional interface like
DoubleUnaryOperatorthat declares aThrowable.- Parameters:
<E> – The kind of thrown exception or error.
- Since:
3.11
Fields and constants¶
NOP singleton |
- @SuppressWarnings({"rawtypes"}) public static final FailableDoubleUnaryOperator NOP[source]¶
NOP singleton
Methods¶
Returns a composed |
|
Applies this operator to the given operand. |
|
Returns a composed |
|
Returns a unary operator that always returns its input argument. |
|
Gets the NOP singleton. |
- public default FailableDoubleUnaryOperator<E> andThen(FailableDoubleUnaryOperator<E> after)[source]¶
Returns a composed
FailableDoubleUnaryOperatorlikeDoubleUnaryOperator#andThen(DoubleUnaryOperator).- Parameters:
after – The operator to apply after this one.
- Returns:
A composed
FailableDoubleUnaryOperatorlikeDoubleUnaryOperator#andThen(DoubleUnaryOperator).- Throws:
java.lang.NullPointerException – Thrown if after is null.
- See also:
- public abstract double applyAsDouble(double operand) throws E[source]¶
Applies this operator to the given operand.
- Parameters:
operand – The operand
- Returns:
The operator result
- Throws:
E – Thrown when a consumer fails.
- public default FailableDoubleUnaryOperator<E> compose(FailableDoubleUnaryOperator<E> before)[source]¶
Returns a composed
FailableDoubleUnaryOperatorlikeDoubleUnaryOperator#compose(DoubleUnaryOperator).- Parameters:
before – The operator to apply before this one.
- Returns:
A composed
FailableDoubleUnaryOperatorlikeDoubleUnaryOperator#compose(DoubleUnaryOperator).- Throws:
java.lang.NullPointerException – Thrown if before is null.
- See also:
- public static <E extends Throwable> FailableDoubleUnaryOperator<E> identity()[source]¶
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
- @SuppressWarnings({"unchecked"}) public static <E extends Throwable> FailableDoubleUnaryOperator<E> nop()[source]¶
Gets the NOP singleton.
- Type parameters:
<E> – The kind of thrown exception or error.
- Returns:
The NOP singleton.