Interface FailableIntUnaryOperator<E extends java.lang.Throwable>
-
- Type Parameters:
E- The kind of thrown exception or error.
public interface FailableIntUnaryOperator<E extends java.lang.Throwable>A functional interface likeIntUnaryOperatorthat declares aThrowable.- Since:
- 3.11
-
-
Field Summary
Fields Modifier and Type Field Description static FailableIntUnaryOperatorNOPNOP 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 composedFailableDoubleUnaryOperatorlikeIntUnaryOperator.andThen(IntUnaryOperator).intapplyAsInt(int operand)Applies this operator to the given operand.default FailableIntUnaryOperator<E>compose(FailableIntUnaryOperator<E> before)Returns a composedFailableIntUnaryOperatorlikeIntUnaryOperator.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- The kind of thrown exception or error.- 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- The kind of thrown exception or error.- Returns:
- The NOP singleton.
-
andThen
default FailableIntUnaryOperator<E> andThen(FailableIntUnaryOperator<E> after)
Returns a composedFailableDoubleUnaryOperatorlikeIntUnaryOperator.andThen(IntUnaryOperator).- Parameters:
after- the operator to apply after this one.- Returns:
- a composed
FailableIntUnaryOperatorlikeIntUnaryOperator.andThen(IntUnaryOperator). - Throws:
java.lang.NullPointerException- if after is null.- See Also:
compose(FailableIntUnaryOperator)
-
applyAsInt
int applyAsInt(int operand) throws E extends java.lang.ThrowableApplies this operator to the given operand.
-
compose
default FailableIntUnaryOperator<E> compose(FailableIntUnaryOperator<E> before)
Returns a composedFailableIntUnaryOperatorlikeIntUnaryOperator.compose(IntUnaryOperator).- Parameters:
before- the operator to apply before this one.- Returns:
- a composed
FailableIntUnaryOperatorlikeIntUnaryOperator.compose(IntUnaryOperator). - Throws:
java.lang.NullPointerException- if before is null.- See Also:
andThen(FailableIntUnaryOperator)
-
-