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