@FunctionalInterface public interface LBiIntConsumer extends MetaConsumer, MetaInterface.NonThrowing, Codomain<aType.aVoid>, Domain2<aType.aInt,aType.aInt>
Non-throwing functional interface (lambda) LBiIntConsumer for Java 8.
Type: consumer
Domain (lvl: 2): int a1,int a2
Co-domain: none
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBiIntConsumer.LBiIntConsumerSingle |
static interface |
LBiIntConsumer.LInt1Int0Cons
Permutation of LBiIntConsumer for method references.
|
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(int a1,
int a2) |
default void |
accept(int a1,
int a2,
ExWF<RuntimeException> exF) |
default void |
accept(int a1,
int a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static LBiIntConsumer |
accept1st(LIntConsumer func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static LBiIntConsumer |
accept2nd(LIntConsumer func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default void |
acceptThen(int a1,
int a2,
LConsumer<Throwable> handler) |
void |
acceptX(int a1,
int a2)
Implement this, but call accept(int a1,int a2)
|
default LBiIntConsumer |
andThen(LBiIntConsumer after)
Combines two LBiIntConsumer together in a order.
|
static LBiIntConsumer |
biIntCons(LBiIntConsumer lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LBiConsumer<V1,V2> |
biIntConsCompose(LToIntFunction<? super V1> before1,
LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static LBiIntConsumer |
biIntConsThrowing(ExF<Throwable> exF) |
static LBiIntConsumer |
biIntConsThrowing(String message,
ExMF<Throwable> exF) |
static void |
call(int a1,
int a2,
LBiIntConsumer lambda) |
default LAction |
capture(int a1,
int a2)
Captures arguments but delays the evaluation.
|
default LBiIntConsumer |
compose(LIntUnaryOperator before1,
LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static LBiIntConsumer |
composed(LIntUnaryOperator before1,
LIntUnaryOperator before2,
LBiIntConsumer after) |
static <V1,V2> LBiConsumer<V1,V2> |
composed(LToIntFunction<? super V1> before1,
LToIntFunction<? super V2> before2,
LBiIntConsumer after) |
static void |
doNothing(int a1,
int a2)
Does nothing (LBiIntConsumer)
|
static LBiIntConsumer |
failSafe(LBiIntConsumer func,
LBiIntConsumer failSafe) |
default void |
failSafeAccept(int a1,
int a2,
LBiIntConsumer failSafe) |
static void |
failSafeAccept(int a1,
int a2,
LBiIntConsumer func,
LBiIntConsumer failSafe) |
static <C1,C2> int |
forEach(IndexedRead<C1,aType.aInt> ia1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static void |
fromTill(int min_i,
int max_i,
int a1,
int a2,
LBiIntConsumer func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
int a1,
int a2,
LBiIntConsumer func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBiIntConsumer |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default void |
handlingAccept(int a1,
int a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static void |
handlingAccept(int a1,
int a2,
LBiIntConsumer func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <C2> int |
indexed1stForEach(IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index).
|
static <C2,I2> int |
indexed1stIterate(SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index).
|
static <C1> int |
indexed2ndForEach(IndexedRead<C1,aType.aInt> ia1,
C1 source1,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index).
|
static <C1,I1> int |
indexed2ndIterate(SequentialRead<C1,I1,aType.aInt> sa1,
C1 source1,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index).
|
static LBiIntConsumer.LInt1Int0Cons |
int1Int0Cons(LBiIntConsumer.LInt1Int0Cons lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <C1,C2,I2> int |
iterate(IndexedRead<C1,aType.aInt> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C1,I1,C2> int |
iterate(SequentialRead<C1,I1,aType.aInt> sa1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C1,I1,C2,I2> |
iterate(SequentialRead<C1,I1,aType.aInt> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
default LIntConsumer |
lShrink(LIntUnaryOperator left) |
default LIntConsumer |
lShrinkc(int a1) |
static LIntConsumer |
lShrinked(LIntUnaryOperator left,
LBiIntConsumer func) |
static LIntConsumer |
lShrinkedc(int a1,
LBiIntConsumer func) |
default void |
nestingAccept(int a1,
int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
static LBiIntConsumer |
recursive(LFunction<LBiIntConsumer,LBiIntConsumer> selfLambda) |
default LIntConsumer |
rShrink(LIntUnaryOperator right) |
default LIntConsumer |
rShrinkc(int a2) |
static LIntConsumer |
rShrinked(LIntUnaryOperator right,
LBiIntConsumer func) |
static LIntConsumer |
rShrinkedc(int a2,
LBiIntConsumer func) |
static LBiIntConsumer |
safe()
Safe instance.
|
static LBiIntConsumer |
safe(LBiIntConsumer other)
Safe wrapping.
|
static LSupplier<LBiIntConsumer> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBiIntConsumer> |
safeSupplier(LSupplier<LBiIntConsumer> supplier)
Safe supplier.
|
default void |
shovingAccept(int a1,
int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static <C2> int |
targetedForEach(int a1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C2,I2> int |
targetedIterate(int a1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static void |
times(int max_i,
int a1,
int a2,
LBiIntConsumer func)
From-To.
|
static void |
tryAccept(int a1,
int a2,
LBiIntConsumer func) |
static void |
tryAccept(int a1,
int a2,
LBiIntConsumer func,
ExWF<RuntimeException> exF) |
static void |
tryAccept(int a1,
int a2,
LBiIntConsumer func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static void |
tryAcceptThen(int a1,
int a2,
LBiIntConsumer func,
LConsumer<Throwable> handler) |
default LBiIntConsumer |
trying(ExWF<RuntimeException> exF) |
default LBiIntConsumer |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBiIntConsumer |
tryingThen(LConsumer<Throwable> handler) |
default LTuple.Void |
tupleAccept(LIntPair args) |
static LBiIntConsumer |
uncurry(LIntFunction<LIntConsumer> func) |
isConsumerformatTo, isAction, isFunction, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default void accept(int a1,
int a2)
void acceptX(int a1,
int a2)
throws Throwable
Implement this, but call accept(int a1,int a2)
Throwabledefault LTuple.Void tupleAccept(LIntPair args)
default void handlingAccept(int a1,
int a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBiIntConsumer handling(HandlingInstructions<Throwable,RuntimeException> handling)
default void accept(int a1,
int a2,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LBiIntConsumer trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default void accept(int a1,
int a2,
@Nonnull
ExWF<RuntimeException> exF)
default LBiIntConsumer trying(@Nonnull ExWF<RuntimeException> exF)
default LBiIntConsumer tryingThen(@Nonnull LConsumer<Throwable> handler)
default void nestingAccept(int a1,
int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default void shovingAccept(int a1,
int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static void handlingAccept(int a1,
int a2,
LBiIntConsumer func,
HandlingInstructions<Throwable,RuntimeException> handling)
static void tryAccept(int a1,
int a2,
LBiIntConsumer func)
static void tryAccept(int a1,
int a2,
LBiIntConsumer func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static void tryAccept(int a1,
int a2,
LBiIntConsumer func,
@Nonnull
ExWF<RuntimeException> exF)
static void tryAcceptThen(int a1,
int a2,
LBiIntConsumer func,
@Nonnull
LConsumer<Throwable> handler)
default void failSafeAccept(int a1,
int a2,
@Nonnull
LBiIntConsumer failSafe)
static void failSafeAccept(int a1,
int a2,
LBiIntConsumer func,
@Nonnull
LBiIntConsumer failSafe)
static LBiIntConsumer failSafe(LBiIntConsumer func, @Nonnull LBiIntConsumer failSafe)
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic void fromTo(int min_i,
int max_i,
int a1,
int a2,
LBiIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
int a1,
int a2,
LBiIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
int a1,
int a2,
LBiIntConsumer func)
From-To. Intended to be used with non-capturing lambda.
default LIntConsumer lShrink(LIntUnaryOperator left)
default LIntConsumer lShrinkc(int a1)
static LIntConsumer lShrinked(LIntUnaryOperator left, LBiIntConsumer func)
static LIntConsumer lShrinkedc(int a1, LBiIntConsumer func)
default LIntConsumer rShrink(LIntUnaryOperator right)
default LIntConsumer rShrinkc(int a2)
static LIntConsumer rShrinked(LIntUnaryOperator right, LBiIntConsumer func)
static LIntConsumer rShrinkedc(int a2, LBiIntConsumer func)
static LBiIntConsumer uncurry(LIntFunction<LIntConsumer> func)
default LAction capture(int a1, int a2)
Captures arguments but delays the evaluation.
@Nonnull static LBiIntConsumer accept1st(@Nonnull LIntConsumer func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static LBiIntConsumer accept2nd(@Nonnull LIntConsumer func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static LBiIntConsumer biIntCons(@Nonnull LBiIntConsumer lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBiIntConsumer recursive(@Nonnull LFunction<LBiIntConsumer,LBiIntConsumer> selfLambda)
@Nonnull static LBiIntConsumer biIntConsThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBiIntConsumer biIntConsThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static LBiIntConsumer.LInt1Int0Cons int1Int0Cons(@Nonnull LBiIntConsumer.LInt1Int0Cons lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static void call(int a1,
int a2,
@Nonnull
LBiIntConsumer lambda)
@Nonnull static LBiIntConsumer safe()
Safe instance.
@Nonnull static LSupplier<LBiIntConsumer> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBiIntConsumer safe(@Nullable LBiIntConsumer other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBiIntConsumer> safeSupplier(@Nullable LSupplier<LBiIntConsumer> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBiIntConsumer compose(@Nonnull LIntUnaryOperator before1, @Nonnull LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
static LBiIntConsumer composed(@Nonnull LIntUnaryOperator before1, @Nonnull LIntUnaryOperator before2, LBiIntConsumer after)
@Nonnull default <V1,V2> LBiConsumer<V1,V2> biIntConsCompose(@Nonnull LToIntFunction<? super V1> before1, @Nonnull LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2> LBiConsumer<V1,V2> composed(@Nonnull LToIntFunction<? super V1> before1, @Nonnull LToIntFunction<? super V2> before2, LBiIntConsumer after)
@Nonnull default LBiIntConsumer andThen(@Nonnull LBiIntConsumer after)
Combines two LBiIntConsumer together in a order.
static void doNothing(int a1,
int a2)
Does nothing (LBiIntConsumer)
static <C1,C2> int forEach(IndexedRead<C1,aType.aInt> ia1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1,C2> int iterate(SequentialRead<C1,I1,aType.aInt> sa1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,C2,I2> int iterate(IndexedRead<C1,aType.aInt> ia1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1,C2,I2> int iterate(SequentialRead<C1,I1,aType.aInt> sa1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LBiIntConsumer 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.
static <C2> int indexed1stForEach(IndexedRead<C2,aType.aInt> ia2, C2 source2, LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index). Thread safety, fail-fast, fail-safety of this method is not expected.
static <C2,I2> int indexed1stIterate(SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index). Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
static <C1> int indexed2ndForEach(IndexedRead<C1,aType.aInt> ia1, C1 source1, LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index). Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1> int indexed2ndIterate(SequentialRead<C1,I1,aType.aInt> sa1, C1 source1, LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer (with index). Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
static <C2> int targetedForEach(int a1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C2,I2> int targetedIterate(int a1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LBiIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer. First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.