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