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