Interface FailableLongUnaryOperator<E extends Throwable>
- Type Parameters:
- E- The kind of thrown exception or error.
public interface FailableLongUnaryOperator<E extends Throwable>
A functional interface like 
LongUnaryOperator that declares a Throwable.- Since:
- 3.11
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault FailableLongUnaryOperator<E>andThen(FailableLongUnaryOperator<E> after) Returns a composedFailableDoubleUnaryOperatorlikeLongUnaryOperator.andThen(LongUnaryOperator).longapplyAsLong(long operand) Applies this operator to the given operand.default FailableLongUnaryOperator<E>compose(FailableLongUnaryOperator<E> before) Returns a composedFailableLongUnaryOperatorlikeLongUnaryOperator.compose(LongUnaryOperator).static <E extends Throwable>
 FailableLongUnaryOperator<E>identity()Returns a unary operator that always returns its input argument.static <E extends Throwable>
 FailableLongUnaryOperator<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 composedFailableDoubleUnaryOperatorlikeLongUnaryOperator.andThen(LongUnaryOperator).- Parameters:
- after- the operator to apply after this one.
- Returns:
- a composed FailableLongUnaryOperatorlikeLongUnaryOperator.andThen(LongUnaryOperator).
- Throws:
- NullPointerException- if after is null.
- See Also:
 
- 
applyAsLongApplies this operator to the given operand.- Parameters:
- operand- the operand
- Returns:
- the operator result
- Throws:
- E- Thrown when a consumer fails.
 
- 
composeReturns a composedFailableLongUnaryOperatorlikeLongUnaryOperator.compose(LongUnaryOperator).- Parameters:
- before- the operator to apply before this one.
- Returns:
- a composed FailableLongUnaryOperatorlikeLongUnaryOperator.compose(LongUnaryOperator).
- Throws:
- NullPointerException- if before is null.
- See Also:
 
 
-