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