@FunctionalInterface public interface LBoolToByteFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aByte>, Domain1<aType.aBool>
Non-throwing functional interface (lambda) LBoolToByteFunction for Java 8.
Type: function
Domain (lvl: 1): boolean a
Co-domain: byte
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolToByteFunction.LBoolToByteFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default byte |
applyAsByte(boolean a) |
default byte |
applyAsByte(boolean a,
ExWF<RuntimeException> exF) |
default byte |
applyAsByte(boolean a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default byte |
applyAsByteThen(boolean a,
LToByteFunction<Throwable> handler) |
byte |
applyAsByteX(boolean a)
Implement this, but call applyAsByte(boolean a)
|
static LBoolToByteFunction |
boolToByteFunc(LBoolToByteFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToByteFunction<V> |
boolToByteFuncCompose(LPredicate<? super V> before)
Allows to manipulate the domain of the function.
|
static LBoolToByteFunction |
boolToByteFuncThrowing(ExF<Throwable> exF) |
static LBoolToByteFunction |
boolToByteFuncThrowing(String message,
ExMF<Throwable> exF) |
static byte |
call(boolean a,
LBoolToByteFunction lambda) |
default LByteSupplier |
capture(boolean a)
Captures arguments but delays the evaluation.
|
default LBoolToByteFunction |
compose(LLogicalOperator before)
Allows to manipulate the domain of the function.
|
static LBoolToByteFunction |
composed(LLogicalOperator before,
LBoolToByteFunction after) |
static <V> LToByteFunction<V> |
composed(LPredicate<? super V> before,
LBoolToByteFunction after) |
static LBoolToByteFunction |
constant(byte r)
Creates function that always returns the same value.
|
static LBoolToByteFunction |
failSafe(LBoolToByteFunction func,
LBoolToByteFunction failSafe) |
default byte |
failSafeApplyAsByte(boolean a,
LBoolToByteFunction failSafe) |
static byte |
failSafeApplyAsByte(boolean a,
LBoolToByteFunction func,
LBoolToByteFunction failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aBool> ia,
C0 source,
LByteConsumer 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,
LBoolToByteFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
boolean a,
LBoolToByteFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBoolToByteFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default byte |
handlingApplyAsByte(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static byte |
handlingApplyAsByte(boolean a,
LBoolToByteFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aBool> sa,
C0 source,
LByteConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default byte |
nestingApplyAsByte(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default byte |
nonNullApplyAsByte(boolean a)
Just to mirror the method: Ensures the result is not null
|
static byte |
produceByte(boolean a)
Does nothing (LBoolToByteFunction) Function
|
static LBoolToByteFunction |
recursive(LFunction<LBoolToByteFunction,LBoolToByteFunction> selfLambda) |
static LBoolToByteFunction |
safe()
Safe instance.
|
static LBoolToByteFunction |
safe(LBoolToByteFunction other)
Safe wrapping.
|
static LSupplier<LBoolToByteFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBoolToByteFunction> |
safeSupplier(LSupplier<LBoolToByteFunction> supplier)
Safe supplier.
|
default byte |
shovingApplyAsByte(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(LByteFunction<? extends V> after)
Combines two functions together in a order.
|
default LLogicalOperator |
thenToBool(LBytePredicate after)
Combines two functions together in a order.
|
default LBoolToByteFunction |
thenToByte(LByteUnaryOperator after)
Combines two functions together in a order.
|
default LBoolToCharFunction |
thenToChar(LByteToCharFunction after)
Combines two functions together in a order.
|
default LBoolToDblFunction |
thenToDbl(LByteToDblFunction after)
Combines two functions together in a order.
|
default LBoolToFltFunction |
thenToFlt(LByteToFltFunction after)
Combines two functions together in a order.
|
default LBoolToIntFunction |
thenToInt(LByteToIntFunction after)
Combines two functions together in a order.
|
default LBoolToLongFunction |
thenToLong(LByteToLongFunction after)
Combines two functions together in a order.
|
default LBoolToSrtFunction |
thenToSrt(LByteToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
boolean a,
LBoolToByteFunction func)
From-To.
|
static byte |
tryApplyAsByte(boolean a,
LBoolToByteFunction func) |
static byte |
tryApplyAsByte(boolean a,
LBoolToByteFunction func,
ExWF<RuntimeException> exF) |
static byte |
tryApplyAsByte(boolean a,
LBoolToByteFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static byte |
tryApplyAsByteThen(boolean a,
LBoolToByteFunction func,
LToByteFunction<Throwable> handler) |
default LBoolToByteFunction |
trying(ExWF<RuntimeException> exF) |
default LBoolToByteFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBoolToByteFunction |
tryingThen(LToByteFunction<Throwable> handler) |
default byte |
tupleApplyAsByte(LBoolSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default byte applyAsByte(boolean a)
byte applyAsByteX(boolean a)
throws Throwable
Implement this, but call applyAsByte(boolean a)
Throwabledefault byte tupleApplyAsByte(LBoolSingle args)
default byte handlingApplyAsByte(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBoolToByteFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default byte applyAsByte(boolean a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LBoolToByteFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default byte applyAsByte(boolean a,
@Nonnull
ExWF<RuntimeException> exF)
default LBoolToByteFunction trying(@Nonnull ExWF<RuntimeException> exF)
default byte applyAsByteThen(boolean a,
@Nonnull
LToByteFunction<Throwable> handler)
default LBoolToByteFunction tryingThen(@Nonnull LToByteFunction<Throwable> handler)
default byte nestingApplyAsByte(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default byte shovingApplyAsByte(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static byte handlingApplyAsByte(boolean a,
LBoolToByteFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static byte tryApplyAsByte(boolean a,
LBoolToByteFunction func)
static byte tryApplyAsByte(boolean a,
LBoolToByteFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static byte tryApplyAsByte(boolean a,
LBoolToByteFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static byte tryApplyAsByteThen(boolean a,
LBoolToByteFunction func,
@Nonnull
LToByteFunction<Throwable> handler)
default byte failSafeApplyAsByte(boolean a,
@Nonnull
LBoolToByteFunction failSafe)
static byte failSafeApplyAsByte(boolean a,
LBoolToByteFunction func,
@Nonnull
LBoolToByteFunction failSafe)
static LBoolToByteFunction failSafe(LBoolToByteFunction func, @Nonnull LBoolToByteFunction failSafe)
default byte nonNullApplyAsByte(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,
LBoolToByteFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
boolean a,
LBoolToByteFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
boolean a,
LBoolToByteFunction func)
From-To. Intended to be used with non-capturing lambda.
default LByteSupplier capture(boolean a)
Captures arguments but delays the evaluation.
static LBoolToByteFunction constant(byte r)
Creates function that always returns the same value.
@Nonnull static LBoolToByteFunction boolToByteFunc(@Nonnull LBoolToByteFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBoolToByteFunction recursive(@Nonnull LFunction<LBoolToByteFunction,LBoolToByteFunction> selfLambda)
@Nonnull static LBoolToByteFunction boolToByteFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBoolToByteFunction boolToByteFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static byte call(boolean a,
@Nonnull
LBoolToByteFunction lambda)
@Nonnull static LBoolToByteFunction safe()
Safe instance. That always returns the same value (as produceByte).
@Nonnull static LSupplier<LBoolToByteFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBoolToByteFunction safe(@Nullable LBoolToByteFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBoolToByteFunction> safeSupplier(@Nullable LSupplier<LBoolToByteFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBoolToByteFunction compose(@Nonnull LLogicalOperator before)
Allows to manipulate the domain of the function.
static LBoolToByteFunction composed(@Nonnull LLogicalOperator before, LBoolToByteFunction after)
@Nonnull default <V> LToByteFunction<V> boolToByteFuncCompose(@Nonnull LPredicate<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToByteFunction<V> composed(@Nonnull LPredicate<? super V> before, LBoolToByteFunction after)
@Nonnull default <V> LBoolFunction<V> then(@Nonnull LByteFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LBoolToByteFunction thenToByte(@Nonnull LByteUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBoolToSrtFunction thenToSrt(@Nonnull LByteToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToIntFunction thenToInt(@Nonnull LByteToIntFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToLongFunction thenToLong(@Nonnull LByteToLongFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToFltFunction thenToFlt(@Nonnull LByteToFltFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToDblFunction thenToDbl(@Nonnull LByteToDblFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToCharFunction thenToChar(@Nonnull LByteToCharFunction after)
Combines two functions together in a order.
@Nonnull default LLogicalOperator thenToBool(@Nonnull LBytePredicate after)
Combines two functions together in a order.
static byte produceByte(boolean a)
Does nothing (LBoolToByteFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aBool> ia, C0 source, LByteConsumer 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, LByteConsumer 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.