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

public Interface FailableLongUnaryOperator<E extends Throwable>

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

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

Field Summary

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

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public default FailableLongUnaryOperator<E>
public long

Returns:

the operator result
applyAsLong
(long
the operand
operand
)

Applies this operator to the given operand.

public default FailableLongUnaryOperator<E>
public static <
The kind of thrown exception or error.
E extends Throwable
>
FailableLongUnaryOperator<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
>
FailableLongUnaryOperator<E>

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

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

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

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

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

Parameters
after:FailableLongUnaryOperator<E>

the operator to apply after this one.

Returns:FailableLongUnaryOperator<E>

a composed FailableLongUnaryOperator like LongUnaryOperator#andThen(LongUnaryOperator).

Exceptions
NullPointerException:
if after is null.
See Also
compose(FailableLongUnaryOperator)
applyAsLongback to summary
public long applyAsLong(long operand) throws E

Applies this operator to the given operand.

Parameters
operand:long

the operand

Returns:long

the operator result

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

Returns a composed FailableLongUnaryOperator like LongUnaryOperator#compose(LongUnaryOperator).

Parameters
before:FailableLongUnaryOperator<E>

the operator to apply before this one.

Returns:FailableLongUnaryOperator<E>

a composed FailableLongUnaryOperator like LongUnaryOperator#compose(LongUnaryOperator).

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

Returns a unary operator that always returns its input argument.

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

a unary operator that always returns its input argument

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

Gets the NOP singleton.

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

The NOP singleton.

Annotations
@SuppressWarnings:unchecked