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