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