@FunctionalInterface public interface LBoolToFltFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aFloat>, Domain1<aType.aBool>
Non-throwing functional interface (lambda) LBoolToFltFunction for Java 8.
Type: function
Domain (lvl: 1): boolean a
Co-domain: float
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolToFltFunction.LBoolToFltFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default float |
applyAsFlt(boolean a) |
default float |
applyAsFlt(boolean a,
ExWF<RuntimeException> exF) |
default float |
applyAsFlt(boolean a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default float |
applyAsFltThen(boolean a,
LToFltFunction<Throwable> handler) |
float |
applyAsFltX(boolean a)
Implement this, but call applyAsFlt(boolean a)
|
static LBoolToFltFunction |
boolToFltFunc(LBoolToFltFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToFltFunction<V> |
boolToFltFuncCompose(LPredicate<? super V> before)
Allows to manipulate the domain of the function.
|
static LBoolToFltFunction |
boolToFltFuncThrowing(ExF<Throwable> exF) |
static LBoolToFltFunction |
boolToFltFuncThrowing(String message,
ExMF<Throwable> exF) |
static float |
call(boolean a,
LBoolToFltFunction lambda) |
default LFltSupplier |
capture(boolean a)
Captures arguments but delays the evaluation.
|
default LBoolToFltFunction |
compose(LLogicalOperator before)
Allows to manipulate the domain of the function.
|
static LBoolToFltFunction |
composed(LLogicalOperator before,
LBoolToFltFunction after) |
static <V> LToFltFunction<V> |
composed(LPredicate<? super V> before,
LBoolToFltFunction after) |
static LBoolToFltFunction |
constant(float r)
Creates function that always returns the same value.
|
static LBoolToFltFunction |
failSafe(LBoolToFltFunction func,
LBoolToFltFunction failSafe) |
default float |
failSafeApplyAsFlt(boolean a,
LBoolToFltFunction failSafe) |
static float |
failSafeApplyAsFlt(boolean a,
LBoolToFltFunction func,
LBoolToFltFunction failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aBool> ia,
C0 source,
LFltConsumer 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,
LBoolToFltFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
boolean a,
LBoolToFltFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBoolToFltFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default float |
handlingApplyAsFlt(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static float |
handlingApplyAsFlt(boolean a,
LBoolToFltFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aBool> sa,
C0 source,
LFltConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default float |
nestingApplyAsFlt(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default float |
nonNullApplyAsFlt(boolean a)
Just to mirror the method: Ensures the result is not null
|
static float |
produceFloat(boolean a)
Does nothing (LBoolToFltFunction) Function
|
static LBoolToFltFunction |
recursive(LFunction<LBoolToFltFunction,LBoolToFltFunction> selfLambda) |
static LBoolToFltFunction |
safe()
Safe instance.
|
static LBoolToFltFunction |
safe(LBoolToFltFunction other)
Safe wrapping.
|
static LSupplier<LBoolToFltFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBoolToFltFunction> |
safeSupplier(LSupplier<LBoolToFltFunction> supplier)
Safe supplier.
|
default float |
shovingApplyAsFlt(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(LFltFunction<? extends V> after)
Combines two functions together in a order.
|
default LLogicalOperator |
thenToBool(LFltPredicate after)
Combines two functions together in a order.
|
default LBoolToByteFunction |
thenToByte(LFltToByteFunction after)
Combines two functions together in a order.
|
default LBoolToCharFunction |
thenToChar(LFltToCharFunction after)
Combines two functions together in a order.
|
default LBoolToDblFunction |
thenToDbl(LFltToDblFunction after)
Combines two functions together in a order.
|
default LBoolToFltFunction |
thenToFlt(LFltUnaryOperator after)
Combines two functions together in a order.
|
default LBoolToIntFunction |
thenToInt(LFltToIntFunction after)
Combines two functions together in a order.
|
default LBoolToLongFunction |
thenToLong(LFltToLongFunction after)
Combines two functions together in a order.
|
default LBoolToSrtFunction |
thenToSrt(LFltToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
boolean a,
LBoolToFltFunction func)
From-To.
|
static float |
tryApplyAsFlt(boolean a,
LBoolToFltFunction func) |
static float |
tryApplyAsFlt(boolean a,
LBoolToFltFunction func,
ExWF<RuntimeException> exF) |
static float |
tryApplyAsFlt(boolean a,
LBoolToFltFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static float |
tryApplyAsFltThen(boolean a,
LBoolToFltFunction func,
LToFltFunction<Throwable> handler) |
default LBoolToFltFunction |
trying(ExWF<RuntimeException> exF) |
default LBoolToFltFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBoolToFltFunction |
tryingThen(LToFltFunction<Throwable> handler) |
default float |
tupleApplyAsFlt(LBoolSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default float applyAsFlt(boolean a)
float applyAsFltX(boolean a)
throws Throwable
Implement this, but call applyAsFlt(boolean a)
Throwabledefault float tupleApplyAsFlt(LBoolSingle args)
default float handlingApplyAsFlt(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBoolToFltFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default float applyAsFlt(boolean a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LBoolToFltFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default float applyAsFlt(boolean a,
@Nonnull
ExWF<RuntimeException> exF)
default LBoolToFltFunction trying(@Nonnull ExWF<RuntimeException> exF)
default float applyAsFltThen(boolean a,
@Nonnull
LToFltFunction<Throwable> handler)
default LBoolToFltFunction tryingThen(@Nonnull LToFltFunction<Throwable> handler)
default float nestingApplyAsFlt(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default float shovingApplyAsFlt(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static float handlingApplyAsFlt(boolean a,
LBoolToFltFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static float tryApplyAsFlt(boolean a,
LBoolToFltFunction func)
static float tryApplyAsFlt(boolean a,
LBoolToFltFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static float tryApplyAsFlt(boolean a,
LBoolToFltFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static float tryApplyAsFltThen(boolean a,
LBoolToFltFunction func,
@Nonnull
LToFltFunction<Throwable> handler)
default float failSafeApplyAsFlt(boolean a,
@Nonnull
LBoolToFltFunction failSafe)
static float failSafeApplyAsFlt(boolean a,
LBoolToFltFunction func,
@Nonnull
LBoolToFltFunction failSafe)
static LBoolToFltFunction failSafe(LBoolToFltFunction func, @Nonnull LBoolToFltFunction failSafe)
default float nonNullApplyAsFlt(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,
LBoolToFltFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
boolean a,
LBoolToFltFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
boolean a,
LBoolToFltFunction func)
From-To. Intended to be used with non-capturing lambda.
default LFltSupplier capture(boolean a)
Captures arguments but delays the evaluation.
static LBoolToFltFunction constant(float r)
Creates function that always returns the same value.
@Nonnull static LBoolToFltFunction boolToFltFunc(@Nonnull LBoolToFltFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBoolToFltFunction recursive(@Nonnull LFunction<LBoolToFltFunction,LBoolToFltFunction> selfLambda)
@Nonnull static LBoolToFltFunction boolToFltFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBoolToFltFunction boolToFltFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static float call(boolean a,
@Nonnull
LBoolToFltFunction lambda)
@Nonnull static LBoolToFltFunction safe()
Safe instance. That always returns the same value (as produceFloat).
@Nonnull static LSupplier<LBoolToFltFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBoolToFltFunction safe(@Nullable LBoolToFltFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBoolToFltFunction> safeSupplier(@Nullable LSupplier<LBoolToFltFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBoolToFltFunction compose(@Nonnull LLogicalOperator before)
Allows to manipulate the domain of the function.
static LBoolToFltFunction composed(@Nonnull LLogicalOperator before, LBoolToFltFunction after)
@Nonnull default <V> LToFltFunction<V> boolToFltFuncCompose(@Nonnull LPredicate<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToFltFunction<V> composed(@Nonnull LPredicate<? super V> before, LBoolToFltFunction after)
@Nonnull default <V> LBoolFunction<V> then(@Nonnull LFltFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LBoolToByteFunction thenToByte(@Nonnull LFltToByteFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToSrtFunction thenToSrt(@Nonnull LFltToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToIntFunction thenToInt(@Nonnull LFltToIntFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToLongFunction thenToLong(@Nonnull LFltToLongFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToFltFunction thenToFlt(@Nonnull LFltUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBoolToDblFunction thenToDbl(@Nonnull LFltToDblFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToCharFunction thenToChar(@Nonnull LFltToCharFunction after)
Combines two functions together in a order.
@Nonnull default LLogicalOperator thenToBool(@Nonnull LFltPredicate after)
Combines two functions together in a order.
static float produceFloat(boolean a)
Does nothing (LBoolToFltFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aBool> ia, C0 source, LFltConsumer 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, LFltConsumer 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.