E - the type of exception could be thrown while performing operation@FunctionalInterface
public interface IntConsumerEx<E extends java.lang.Throwable>
int-valued argument and
returns no result. This is the primitive type specialization of
ConsumerEx for int. Unlike most other functional interfaces,
IntConsumer is expected to operate via side-effects.
This is a functional interface
whose functional method is accept(int).
ConsumerEx| Modifier and Type | Method and Description |
|---|---|
void |
accept(int value)
Performs this operation on the given argument.
|
default IntConsumerEx<E> |
andThen(IntConsumerEx<E> after)
Returns a composed
IntConsumer that performs, in sequence, this
operation followed by the after operation. |
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 java.util.function.IntConsumer |
unchecked() |
default java.util.function.IntConsumer |
unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.IntConsumer |
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.IntConsumer |
unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.IntConsumer |
unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
void accept(int value)
throws E extends java.lang.Throwable
value - the input argumentE extends java.lang.Throwabledefault IntConsumerEx<E> andThen(IntConsumerEx<E> after)
IntConsumer that performs, in sequence, this
operation followed by the after operation. If performing either
operation throws an exception, it is relayed to the caller of the
composed operation. If performing this operation throws an exception,
the after operation will not be performed.after - the operation to perform after this operationIntConsumer that performs in sequence this
operation followed by the after operationjava.lang.NullPointerException - if after is nulldefault <C extends java.lang.Throwable> IntConsumerEx<C> cover(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> IntConsumerEx<C> cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> IntConsumerEx<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> IntConsumerEx<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.IntConsumer unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.IntConsumer unchecked()
default java.util.function.IntConsumer unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.IntConsumer 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.IntConsumer 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)