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

public Interface FailableIntUnaryOperator<E extends Throwable>

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

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

Field Summary

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

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public default FailableIntUnaryOperator<E>
public int

Returns:

the operator result
applyAsInt
(int
the operand
operand
)

Applies this operator to the given operand.

public default FailableIntUnaryOperator<E>
compose(final FailableIntUnaryOperator<E>
the operator to apply before this one.
before
)

Returns a composed FailableIntUnaryOperator like IntUnaryOperator#compose(IntUnaryOperator).

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

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

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

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

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

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

Parameters
after:FailableIntUnaryOperator<E>

the operator to apply after this one.

Returns:FailableIntUnaryOperator<E>

a composed FailableIntUnaryOperator like IntUnaryOperator#andThen(IntUnaryOperator).

Exceptions
NullPointerException:
if after is null.
See Also
compose(FailableIntUnaryOperator)
applyAsIntback to summary
public int applyAsInt(int operand) throws E

Applies this operator to the given operand.

Parameters
operand:int

the operand

Returns:int

the operator result

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

Returns a composed FailableIntUnaryOperator like IntUnaryOperator#compose(IntUnaryOperator).

Parameters
before:FailableIntUnaryOperator<E>

the operator to apply before this one.

Returns:FailableIntUnaryOperator<E>

a composed FailableIntUnaryOperator like IntUnaryOperator#compose(IntUnaryOperator).

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

Returns a unary operator that always returns its input argument.

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

a unary operator that always returns its input argument

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

Gets the NOP singleton.

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

The NOP singleton.

Annotations
@SuppressWarnings:unchecked