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