@FunctionalInterface public interface LIntConsumer extends java.util.function.IntConsumer, MetaConsumer, MetaInterface.NonThrowing, Codomain<aType.aVoid>, Domain1<aType.aInt>
Non-throwing functional interface (lambda) LIntConsumer for Java 8.
Type: consumer
Domain (lvl: 1): int a
Co-domain: none
| Modifier and Type | Interface and Description |
|---|---|
static class |
LIntConsumer.LIntConsumerSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(int a) |
default void |
accept(int a,
ExWF<RuntimeException> exF) |
default void |
accept(int a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default void |
acceptThen(int a,
LConsumer<Throwable> handler) |
void |
acceptX(int a)
Implement this, but call accept(int a)
|
default LIntConsumer |
andThen(LIntConsumer after)
Combines two LIntConsumer together in a order.
|
static void |
call(int a,
LIntConsumer lambda) |
default LAction |
capture(int a)
Captures arguments but delays the evaluation.
|
default LIntConsumer |
compose(LIntUnaryOperator before)
Allows to manipulate the domain of the function.
|
static LIntConsumer |
composed(LIntUnaryOperator before,
LIntConsumer after) |
static <V> LConsumer<V> |
composed(LToIntFunction<? super V> before,
LIntConsumer after) |
static void |
doNothing(int a)
Does nothing (LIntConsumer)
|
static LIntConsumer |
failSafe(LIntConsumer func,
LIntConsumer failSafe) |
default void |
failSafeAccept(int a,
LIntConsumer failSafe) |
static void |
failSafeAccept(int a,
LIntConsumer func,
LIntConsumer failSafe) |
static <C0> int |
forEach(IndexedRead<C0,aType.aInt> ia,
C0 source,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static void |
fromTill(int min_a,
int max_a,
LIntConsumer func)
From-To.
|
static void |
fromTo(int min_a,
int max_a,
LIntConsumer func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LIntConsumer |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default void |
handlingAccept(int a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static void |
handlingAccept(int a,
LIntConsumer func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static LIntConsumer |
intCons(LIntConsumer lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LConsumer<V> |
intConsCompose(LToIntFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static LIntConsumer |
intConsThrowing(ExF<Throwable> exF) |
static LIntConsumer |
intConsThrowing(String message,
ExMF<Throwable> exF) |
static <C0,I0> int |
iterate(SequentialRead<C0,I0,aType.aInt> sa,
C0 source,
LIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
default void |
nestingAccept(int a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
static LIntConsumer |
recursive(LFunction<LIntConsumer,LIntConsumer> selfLambda) |
static LIntConsumer |
safe()
Safe instance.
|
static LIntConsumer |
safe(LIntConsumer other)
Safe wrapping.
|
static LSupplier<LIntConsumer> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LIntConsumer> |
safeSupplier(LSupplier<LIntConsumer> supplier)
Safe supplier.
|
default void |
shovingAccept(int a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static void |
times(int max_a,
LIntConsumer func)
From-To.
|
static void |
tryAccept(int a,
LIntConsumer func) |
static void |
tryAccept(int a,
LIntConsumer func,
ExWF<RuntimeException> exF) |
static void |
tryAccept(int a,
LIntConsumer func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static void |
tryAcceptThen(int a,
LIntConsumer func,
LConsumer<Throwable> handler) |
default LIntConsumer |
trying(ExWF<RuntimeException> exF) |
default LIntConsumer |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LIntConsumer |
tryingThen(LConsumer<Throwable> handler) |
default LTuple.Void |
tupleAccept(LIntSingle args) |
static LIntConsumer |
wrap(java.util.function.IntConsumer other)
Wraps JRE instance.
|
andThenisConsumerformatTo, isAction, isFunction, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default void accept(int a)
accept in interface java.util.function.IntConsumervoid acceptX(int a)
throws Throwable
Implement this, but call accept(int a)
Throwabledefault LTuple.Void tupleAccept(LIntSingle args)
default void handlingAccept(int a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LIntConsumer handling(HandlingInstructions<Throwable,RuntimeException> handling)
default void accept(int a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LIntConsumer trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default void accept(int a,
@Nonnull
ExWF<RuntimeException> exF)
default LIntConsumer trying(@Nonnull ExWF<RuntimeException> exF)
default LIntConsumer tryingThen(@Nonnull LConsumer<Throwable> handler)
default void nestingAccept(int a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default void shovingAccept(int a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static void handlingAccept(int a,
LIntConsumer func,
HandlingInstructions<Throwable,RuntimeException> handling)
static void tryAccept(int a,
LIntConsumer func)
static void tryAccept(int a,
LIntConsumer func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static void tryAccept(int a,
LIntConsumer func,
@Nonnull
ExWF<RuntimeException> exF)
static void tryAcceptThen(int a,
LIntConsumer func,
@Nonnull
LConsumer<Throwable> handler)
default void failSafeAccept(int a,
@Nonnull
LIntConsumer failSafe)
static void failSafeAccept(int a,
LIntConsumer func,
@Nonnull
LIntConsumer failSafe)
static LIntConsumer failSafe(LIntConsumer func, @Nonnull LIntConsumer failSafe)
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic void fromTo(int min_a,
int max_a,
LIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_a,
int max_a,
LIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_a,
LIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
default LAction capture(int a)
Captures arguments but delays the evaluation.
@Nonnull static LIntConsumer intCons(@Nonnull LIntConsumer lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LIntConsumer recursive(@Nonnull LFunction<LIntConsumer,LIntConsumer> selfLambda)
@Nonnull static LIntConsumer intConsThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LIntConsumer intConsThrowing(String message, @Nonnull ExMF<Throwable> exF)
static void call(int a,
@Nonnull
LIntConsumer lambda)
@Nonnull static LIntConsumer wrap(java.util.function.IntConsumer other)
Wraps JRE instance.
@Nonnull static LIntConsumer safe()
Safe instance.
@Nonnull static LSupplier<LIntConsumer> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LIntConsumer safe(@Nullable LIntConsumer other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LIntConsumer> safeSupplier(@Nullable LSupplier<LIntConsumer> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LIntConsumer compose(@Nonnull LIntUnaryOperator before)
Allows to manipulate the domain of the function.
static LIntConsumer composed(@Nonnull LIntUnaryOperator before, LIntConsumer after)
@Nonnull default <V> LConsumer<V> intConsCompose(@Nonnull LToIntFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V> LConsumer<V> composed(@Nonnull LToIntFunction<? super V> before, LIntConsumer after)
@Nonnull default LIntConsumer andThen(@Nonnull LIntConsumer after)
Combines two LIntConsumer together in a order.
static void doNothing(int a)
Does nothing (LIntConsumer)
static <C0> int forEach(IndexedRead<C0,aType.aInt> ia, C0 source, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C0,I0> int iterate(SequentialRead<C0,I0,aType.aInt> sa, C0 source, LIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.