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