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