Interface FailableIntUnaryOperator<E extends Throwable>
- Type Parameters:
- E- The kind of thrown exception or error.
public interface FailableIntUnaryOperator<E extends Throwable>
A functional interface like 
IntUnaryOperator that declares a Throwable.- Since:
- 3.11
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault 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 Throwable>
 FailableIntUnaryOperator<E>identity()Returns a unary operator that always returns its input argument.static <E extends Throwable>
 FailableIntUnaryOperator<E>nop()Returns The NOP singleton.
- 
Field Details- 
NOPNOP singleton
 
- 
- 
Method Details- 
identityReturns 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
 
- 
nopReturns The NOP singleton.- Type Parameters:
- E- The kind of thrown exception or error.
- Returns:
- The NOP singleton.
 
- 
andThenReturns a composedFailableDoubleUnaryOperatorlikeIntUnaryOperator.andThen(IntUnaryOperator).- Parameters:
- after- the operator to apply after this one.
- Returns:
- a composed FailableIntUnaryOperatorlikeIntUnaryOperator.andThen(IntUnaryOperator).
- Throws:
- NullPointerException- if after is null.
- See Also:
 
- 
applyAsIntApplies this operator to the given operand.- Parameters:
- operand- the operand
- Returns:
- the operator result
- Throws:
- E- Thrown when a consumer fails.
 
- 
composeReturns a composedFailableIntUnaryOperatorlikeIntUnaryOperator.compose(IntUnaryOperator).- Parameters:
- before- the operator to apply before this one.
- Returns:
- a composed FailableIntUnaryOperatorlikeIntUnaryOperator.compose(IntUnaryOperator).
- Throws:
- NullPointerException- if before is null.
- See Also:
 
 
-