Top Description Fields Methods
org.apache.commons.lang3.function

public Interface FailableDoubleUnaryOperator<E extends Throwable>

Type Parameters
<E>
The kind of thrown exception or error.
Imports
java.util.Objects, java.util.function.DoubleUnaryOperator

A functional interface like DoubleUnaryOperator that declares a Throwable.
Since
3.11

Field Summary

Modifier and TypeField and Description
public static final FailableDoubleUnaryOperator<E extends Throwable>
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public default FailableDoubleUnaryOperator<E>
public double

Returns:

the operator result
applyAsDouble
(double
the operand
operand
)

Applies this operator to the given operand.

public default FailableDoubleUnaryOperator<E>
public static <
The kind of thrown exception or error.
E extends Throwable
>
FailableDoubleUnaryOperator<E>

Returns:

a unary operator that always returns its input argument
identity
()

Returns a unary operator that always returns its input argument.

public static <
The kind of thrown exception or error.
E extends Throwable
>
FailableDoubleUnaryOperator<E>

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final FailableDoubleUnaryOperator<E extends Throwable> NOP

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

andThenback to summary
public default FailableDoubleUnaryOperator<E> andThen(final FailableDoubleUnaryOperator<E> after)

Returns a composed FailableDoubleUnaryOperator like DoubleUnaryOperator#andThen(DoubleUnaryOperator).

Parameters
after:FailableDoubleUnaryOperator<E>

the operator to apply after this one.

Returns:FailableDoubleUnaryOperator<E>

a composed FailableDoubleUnaryOperator like DoubleUnaryOperator#andThen(DoubleUnaryOperator).

Exceptions
NullPointerException:
if after is null.
See Also
compose(FailableDoubleUnaryOperator)
applyAsDoubleback to summary
public double applyAsDouble(double operand) throws E

Applies this operator to the given operand.

Parameters
operand:double

the operand

Returns:double

the operator result

Exceptions
E:
Thrown when a consumer fails.
composeback to summary
public default FailableDoubleUnaryOperator<E> compose(final FailableDoubleUnaryOperator<E> before)

Returns a composed FailableDoubleUnaryOperator like DoubleUnaryOperator#compose(DoubleUnaryOperator).

Parameters
before:FailableDoubleUnaryOperator<E>

the operator to apply before this one.

Returns:FailableDoubleUnaryOperator<E>

a composed FailableDoubleUnaryOperator like DoubleUnaryOperator#compose(DoubleUnaryOperator).

Exceptions
NullPointerException:
if before is null.
See Also
andThen(FailableDoubleUnaryOperator)
identityback to summary
public static <E extends Throwable> FailableDoubleUnaryOperator<E> identity()

Returns a unary operator that always returns its input argument.

Parameters
<E>
The kind of thrown exception or error.
Returns:FailableDoubleUnaryOperator<E>

a unary operator that always returns its input argument

nopback to summary
public static <E extends Throwable> FailableDoubleUnaryOperator<E> nop()

Gets the NOP singleton.

Parameters
<E>
The kind of thrown exception or error.
Returns:FailableDoubleUnaryOperator<E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked