@FunctionalInterface public interface LBoolToCharFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aChar>, Domain1<aType.aBool>
Non-throwing functional interface (lambda) LBoolToCharFunction for Java 8.
Type: function
Domain (lvl: 1): boolean a
Co-domain: char
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolToCharFunction.LBoolToCharFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default char |
applyAsChar(boolean a) |
default char |
applyAsChar(boolean a,
ExWF<RuntimeException> exF) |
default char |
applyAsChar(boolean a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default char |
applyAsCharThen(boolean a,
LToCharFunction<Throwable> handler) |
char |
applyAsCharX(boolean a)
Implement this, but call applyAsChar(boolean a)
|
static LBoolToCharFunction |
boolToCharFunc(LBoolToCharFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToCharFunction<V> |
boolToCharFuncCompose(LPredicate<? super V> before)
Allows to manipulate the domain of the function.
|
static LBoolToCharFunction |
boolToCharFuncThrowing(ExF<Throwable> exF) |
static LBoolToCharFunction |
boolToCharFuncThrowing(String message,
ExMF<Throwable> exF) |
static char |
call(boolean a,
LBoolToCharFunction lambda) |
default LCharSupplier |
capture(boolean a)
Captures arguments but delays the evaluation.
|
default LBoolToCharFunction |
compose(LLogicalOperator before)
Allows to manipulate the domain of the function.
|
static LBoolToCharFunction |
composed(LLogicalOperator before,
LBoolToCharFunction after) |
static <V> LToCharFunction<V> |
composed(LPredicate<? super V> before,
LBoolToCharFunction after) |
static LBoolToCharFunction |
constant(char r)
Creates function that always returns the same value.
|
static LBoolToCharFunction |
failSafe(LBoolToCharFunction func,
LBoolToCharFunction failSafe) |
default char |
failSafeApplyAsChar(boolean a,
LBoolToCharFunction failSafe) |
static char |
failSafeApplyAsChar(boolean a,
LBoolToCharFunction func,
LBoolToCharFunction failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aBool> ia,
C0 source,
LCharConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static void |
fromTill(int min_i,
int max_i,
boolean a,
LBoolToCharFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
boolean a,
LBoolToCharFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBoolToCharFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default char |
handlingApplyAsChar(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static char |
handlingApplyAsChar(boolean a,
LBoolToCharFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aBool> sa,
C0 source,
LCharConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default char |
nestingApplyAsChar(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default char |
nonNullApplyAsChar(boolean a)
Just to mirror the method: Ensures the result is not null
|
static char |
produceChar(boolean a)
Does nothing (LBoolToCharFunction) Function
|
static LBoolToCharFunction |
recursive(LFunction<LBoolToCharFunction,LBoolToCharFunction> selfLambda) |
static LBoolToCharFunction |
safe()
Safe instance.
|
static LBoolToCharFunction |
safe(LBoolToCharFunction other)
Safe wrapping.
|
static LSupplier<LBoolToCharFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBoolToCharFunction> |
safeSupplier(LSupplier<LBoolToCharFunction> supplier)
Safe supplier.
|
default char |
shovingApplyAsChar(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LBoolFunction<V> |
then(LCharFunction<? extends V> after)
Combines two functions together in a order.
|
default LLogicalOperator |
thenToBool(LCharPredicate after)
Combines two functions together in a order.
|
default LBoolToByteFunction |
thenToByte(LCharToByteFunction after)
Combines two functions together in a order.
|
default LBoolToCharFunction |
thenToChar(LCharUnaryOperator after)
Combines two functions together in a order.
|
default LBoolToDblFunction |
thenToDbl(LCharToDblFunction after)
Combines two functions together in a order.
|
default LBoolToFltFunction |
thenToFlt(LCharToFltFunction after)
Combines two functions together in a order.
|
default LBoolToIntFunction |
thenToInt(LCharToIntFunction after)
Combines two functions together in a order.
|
default LBoolToLongFunction |
thenToLong(LCharToLongFunction after)
Combines two functions together in a order.
|
default LBoolToSrtFunction |
thenToSrt(LCharToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
boolean a,
LBoolToCharFunction func)
From-To.
|
static char |
tryApplyAsChar(boolean a,
LBoolToCharFunction func) |
static char |
tryApplyAsChar(boolean a,
LBoolToCharFunction func,
ExWF<RuntimeException> exF) |
static char |
tryApplyAsChar(boolean a,
LBoolToCharFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static char |
tryApplyAsCharThen(boolean a,
LBoolToCharFunction func,
LToCharFunction<Throwable> handler) |
default LBoolToCharFunction |
trying(ExWF<RuntimeException> exF) |
default LBoolToCharFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBoolToCharFunction |
tryingThen(LToCharFunction<Throwable> handler) |
default char |
tupleApplyAsChar(LBoolSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default char applyAsChar(boolean a)
char applyAsCharX(boolean a)
throws Throwable
Implement this, but call applyAsChar(boolean a)
Throwabledefault char tupleApplyAsChar(LBoolSingle args)
default char handlingApplyAsChar(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBoolToCharFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default char applyAsChar(boolean a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LBoolToCharFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default char applyAsChar(boolean a,
@Nonnull
ExWF<RuntimeException> exF)
default LBoolToCharFunction trying(@Nonnull ExWF<RuntimeException> exF)
default char applyAsCharThen(boolean a,
@Nonnull
LToCharFunction<Throwable> handler)
default LBoolToCharFunction tryingThen(@Nonnull LToCharFunction<Throwable> handler)
default char nestingApplyAsChar(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default char shovingApplyAsChar(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static char handlingApplyAsChar(boolean a,
LBoolToCharFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static char tryApplyAsChar(boolean a,
LBoolToCharFunction func)
static char tryApplyAsChar(boolean a,
LBoolToCharFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static char tryApplyAsChar(boolean a,
LBoolToCharFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static char tryApplyAsCharThen(boolean a,
LBoolToCharFunction func,
@Nonnull
LToCharFunction<Throwable> handler)
default char failSafeApplyAsChar(boolean a,
@Nonnull
LBoolToCharFunction failSafe)
static char failSafeApplyAsChar(boolean a,
LBoolToCharFunction func,
@Nonnull
LBoolToCharFunction failSafe)
static LBoolToCharFunction failSafe(LBoolToCharFunction func, @Nonnull LBoolToCharFunction failSafe)
default char nonNullApplyAsChar(boolean a)
Just to mirror the method: Ensures the result is not null
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic void fromTo(int min_i,
int max_i,
boolean a,
LBoolToCharFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
boolean a,
LBoolToCharFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
boolean a,
LBoolToCharFunction func)
From-To. Intended to be used with non-capturing lambda.
default LCharSupplier capture(boolean a)
Captures arguments but delays the evaluation.
static LBoolToCharFunction constant(char r)
Creates function that always returns the same value.
@Nonnull static LBoolToCharFunction boolToCharFunc(@Nonnull LBoolToCharFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBoolToCharFunction recursive(@Nonnull LFunction<LBoolToCharFunction,LBoolToCharFunction> selfLambda)
@Nonnull static LBoolToCharFunction boolToCharFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBoolToCharFunction boolToCharFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static char call(boolean a,
@Nonnull
LBoolToCharFunction lambda)
@Nonnull static LBoolToCharFunction safe()
Safe instance. That always returns the same value (as produceChar).
@Nonnull static LSupplier<LBoolToCharFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBoolToCharFunction safe(@Nullable LBoolToCharFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBoolToCharFunction> safeSupplier(@Nullable LSupplier<LBoolToCharFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBoolToCharFunction compose(@Nonnull LLogicalOperator before)
Allows to manipulate the domain of the function.
static LBoolToCharFunction composed(@Nonnull LLogicalOperator before, LBoolToCharFunction after)
@Nonnull default <V> LToCharFunction<V> boolToCharFuncCompose(@Nonnull LPredicate<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToCharFunction<V> composed(@Nonnull LPredicate<? super V> before, LBoolToCharFunction after)
@Nonnull default <V> LBoolFunction<V> then(@Nonnull LCharFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LBoolToByteFunction thenToByte(@Nonnull LCharToByteFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToSrtFunction thenToSrt(@Nonnull LCharToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToIntFunction thenToInt(@Nonnull LCharToIntFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToLongFunction thenToLong(@Nonnull LCharToLongFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToFltFunction thenToFlt(@Nonnull LCharToFltFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToDblFunction thenToDbl(@Nonnull LCharToDblFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToCharFunction thenToChar(@Nonnull LCharUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LLogicalOperator thenToBool(@Nonnull LCharPredicate after)
Combines two functions together in a order.
static char produceChar(boolean a)
Does nothing (LBoolToCharFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aBool> ia, C0 source, LCharConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C0,I0> void iterate(SequentialRead<C0,I0,aType.aBool> sa, C0 source, LCharConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.