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