E - the type of exception could be thrown while performing operation@FunctionalInterface
public interface IntUnaryOperatorEx<E extends java.lang.Throwable>
int-valued operand that produces
an int-valued result. This is the primitive type specialization of
UnaryOperatorEx for int.
This is a functional interface
whose functional method is applyAsInt(int).
UnaryOperatorEx| Modifier and Type | Method and Description |
|---|---|
default IntUnaryOperatorEx |
andThen(IntUnaryOperatorEx after)
Returns a composed operator that first applies this operator to
its input, and then applies the
after operator to the result. |
int |
applyAsInt(int operand)
Applies this operator to the given operand.
|
default IntUnaryOperatorEx |
compose(IntUnaryOperatorEx 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) |
default IntSupplierEx<E> |
fix(int value) |
static <E extends java.lang.Throwable> |
identity()
Returns a unary operator that always returns its input argument.
|
default java.util.function.IntUnaryOperator |
unchecked() |
default java.util.function.IntUnaryOperator |
unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.IntUnaryOperator |
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.IntUnaryOperator |
unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.IntUnaryOperator |
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> IntUnaryOperatorEx<E> identity()
int applyAsInt(int operand)
throws E extends java.lang.Throwable
operand - the operandE extends java.lang.Throwabledefault IntUnaryOperatorEx compose(IntUnaryOperatorEx 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(IntUnaryOperatorEx)default IntUnaryOperatorEx andThen(IntUnaryOperatorEx 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(IntUnaryOperatorEx)default IntSupplierEx<E> fix(int value)
default <C extends java.lang.Throwable> IntUnaryOperatorEx<C> cover(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> IntUnaryOperatorEx<C> cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> IntUnaryOperatorEx<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> IntUnaryOperatorEx<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.IntUnaryOperator unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.IntUnaryOperator unchecked()
default java.util.function.IntUnaryOperator unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.IntUnaryOperator 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.IntUnaryOperator 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)