@FunctionalInterface
public interface LongUnaryOperatorEx<E extends java.lang.Throwable>
long-valued operand that produces
a long-valued result. This is the primitive type specialization of
UnaryOperatorEx for long.
This is a functional interface
whose functional method is applyAsLong(long).
UnaryOperatorEx| Modifier and Type | Method and Description |
|---|---|
default LongUnaryOperatorEx<E> |
andThen(LongUnaryOperatorEx<E> after)
Returns a composed operator that first applies this operator to
its input, and then applies the
after operator to the result. |
long |
applyAsLong(long operand)
Applies this operator to the given operand.
|
default LongUnaryOperatorEx<E> |
compose(LongUnaryOperatorEx<E> before)
Returns a composed operator that first applies the
before
operator to its input, and then applies this operator to the result. |
default <C extends java.lang.Throwable> |
cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
static <E extends java.lang.Throwable> |
identity()
Returns a unary operator that always returns its input argument.
|
default java.util.function.LongUnaryOperator |
unchecked() |
default java.util.function.LongUnaryOperator |
unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.LongUnaryOperator |
unchecked(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.LongUnaryOperator |
unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.LongUnaryOperator |
unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
static <E extends java.lang.Throwable> LongUnaryOperatorEx<E> identity()
long applyAsLong(long operand)
throws E extends java.lang.Throwable
operand - the operandE extends java.lang.Throwabledefault LongUnaryOperatorEx<E> compose(LongUnaryOperatorEx<E> before)
before
operator to its input, and then applies this operator to the result.
If evaluation of either operator throws an exception, it is relayed to
the caller of the composed operator.before - the operator to apply before this operator is appliedbefore
operator and then applies this operatorjava.lang.NullPointerException - if before is nullandThen(LongUnaryOperatorEx)default LongUnaryOperatorEx<E> andThen(LongUnaryOperatorEx<E> after)
after operator to the result.
If evaluation of either operator throws an exception, it is relayed to
the caller of the composed operator.after - the operator to apply after this operator is appliedafter operatorjava.lang.NullPointerException - if after is nullcompose(LongUnaryOperatorEx)default <C extends java.lang.Throwable> LongUnaryOperatorEx<C> cover(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> LongUnaryOperatorEx<C> cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> LongUnaryOperatorEx<C> cover(java.util.function.Supplier<java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> LongUnaryOperatorEx<C> cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default java.util.function.LongUnaryOperator unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.LongUnaryOperator unchecked()
default java.util.function.LongUnaryOperator unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.LongUnaryOperator unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.LongUnaryOperator unchecked(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)