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