Interface FailableIntUnaryOperator<E extends java.lang.Throwable>
-
- Type Parameters:
E
- Thrown exception.
public interface FailableIntUnaryOperator<E extends java.lang.Throwable>
A functional interface likeIntUnaryOperator
that declares aThrowable
.- Since:
- 3.11
-
-
Field Summary
Fields Modifier and Type Field Description static FailableIntUnaryOperator
NOP
NOP singleton
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FailableIntUnaryOperator<E>
andThen(FailableIntUnaryOperator<E> after)
Returns a composedFailableDoubleUnaryOperator
likeIntUnaryOperator.andThen(IntUnaryOperator)
.int
applyAsInt(int operand)
Applies this operator to the given operand.default FailableIntUnaryOperator<E>
compose(FailableIntUnaryOperator<E> before)
Returns a composedFailableIntUnaryOperator
likeIntUnaryOperator.compose(IntUnaryOperator)
.static <E extends java.lang.Throwable>
FailableIntUnaryOperator<E>identity()
Returns a unary operator that always returns its input argument.static <E extends java.lang.Throwable>
FailableIntUnaryOperator<E>nop()
Returns The NOP singleton.
-
-
-
Field Detail
-
NOP
static final FailableIntUnaryOperator NOP
NOP singleton
-
-
Method Detail
-
identity
static <E extends java.lang.Throwable> FailableIntUnaryOperator<E> identity()
Returns a unary operator that always returns its input argument.- Type Parameters:
E
- Thrown exception.- Returns:
- a unary operator that always returns its input argument
-
nop
static <E extends java.lang.Throwable> FailableIntUnaryOperator<E> nop()
Returns The NOP singleton.- Type Parameters:
E
- Thrown exception.- Returns:
- The NOP singleton.
-
andThen
default FailableIntUnaryOperator<E> andThen(FailableIntUnaryOperator<E> after)
Returns a composedFailableDoubleUnaryOperator
likeIntUnaryOperator.andThen(IntUnaryOperator)
.- Parameters:
after
- the operator to apply after this one.- Returns:
- a composed
FailableIntUnaryOperator
likeIntUnaryOperator.andThen(IntUnaryOperator)
. - Throws:
java.lang.NullPointerException
- if after is null.- See Also:
compose(FailableIntUnaryOperator)
-
applyAsInt
int applyAsInt(int operand) throws E extends java.lang.Throwable
Applies this operator to the given operand.
-
compose
default FailableIntUnaryOperator<E> compose(FailableIntUnaryOperator<E> before)
Returns a composedFailableIntUnaryOperator
likeIntUnaryOperator.compose(IntUnaryOperator)
.- Parameters:
before
- the operator to apply before this one.- Returns:
- a composed
FailableIntUnaryOperator
likeIntUnaryOperator.compose(IntUnaryOperator)
. - Throws:
java.lang.NullPointerException
- if before is null.- See Also:
andThen(FailableIntUnaryOperator)
-
-