@FunctionalInterface public interface LByteToDblFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aDouble>, Domain1<aType.aByte>
Non-throwing functional interface (lambda) LByteToDblFunction for Java 8.
Type: function
Domain (lvl: 1): byte a
Co-domain: double
| Modifier and Type | Interface and Description |
|---|---|
static class |
LByteToDblFunction.LByteToDblFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default double |
applyAsDbl(byte a) |
default double |
applyAsDbl(byte a,
ExWF<RuntimeException> exF) |
default double |
applyAsDbl(byte a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default double |
applyAsDblThen(byte a,
LToDblFunction<Throwable> handler) |
double |
applyAsDblX(byte a)
Implement this, but call applyAsDbl(byte a)
|
static LByteToDblFunction |
byteToDblFunc(LByteToDblFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToDblFunction<V> |
byteToDblFuncCompose(LToByteFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static LByteToDblFunction |
byteToDblFuncThrowing(ExF<Throwable> exF) |
static LByteToDblFunction |
byteToDblFuncThrowing(String message,
ExMF<Throwable> exF) |
static double |
call(byte a,
LByteToDblFunction lambda) |
default LDblSupplier |
capture(byte a)
Captures arguments but delays the evaluation.
|
default LByteToDblFunction |
compose(LByteUnaryOperator before)
Allows to manipulate the domain of the function.
|
static LByteToDblFunction |
composed(LByteUnaryOperator before,
LByteToDblFunction after) |
static <V> LToDblFunction<V> |
composed(LToByteFunction<? super V> before,
LByteToDblFunction after) |
static LByteToDblFunction |
constant(double r)
Creates function that always returns the same value.
|
static LByteToDblFunction |
failSafe(LByteToDblFunction func,
LByteToDblFunction failSafe) |
default double |
failSafeApplyAsDbl(byte a,
LByteToDblFunction failSafe) |
static double |
failSafeApplyAsDbl(byte a,
LByteToDblFunction func,
LByteToDblFunction failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aByte> ia,
C0 source,
LDblConsumer 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,
byte a,
LByteToDblFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
byte a,
LByteToDblFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LByteToDblFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default double |
handlingApplyAsDbl(byte a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static double |
handlingApplyAsDbl(byte a,
LByteToDblFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aByte> sa,
C0 source,
LDblConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default double |
nestingApplyAsDbl(byte a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default double |
nonNullApplyAsDbl(byte a)
Just to mirror the method: Ensures the result is not null
|
static double |
produceDouble(byte a)
Does nothing (LByteToDblFunction) Function
|
static LByteToDblFunction |
recursive(LFunction<LByteToDblFunction,LByteToDblFunction> selfLambda) |
static LByteToDblFunction |
safe()
Safe instance.
|
static LByteToDblFunction |
safe(LByteToDblFunction other)
Safe wrapping.
|
static LSupplier<LByteToDblFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LByteToDblFunction> |
safeSupplier(LSupplier<LByteToDblFunction> supplier)
Safe supplier.
|
default double |
shovingApplyAsDbl(byte a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LByteFunction<V> |
then(LDblFunction<? extends V> after)
Combines two functions together in a order.
|
default LBytePredicate |
thenToBool(LDblPredicate after)
Combines two functions together in a order.
|
default LByteUnaryOperator |
thenToByte(LDblToByteFunction after)
Combines two functions together in a order.
|
default LByteToCharFunction |
thenToChar(LDblToCharFunction after)
Combines two functions together in a order.
|
default LByteToDblFunction |
thenToDbl(LDblUnaryOperator after)
Combines two functions together in a order.
|
default LByteToFltFunction |
thenToFlt(LDblToFltFunction after)
Combines two functions together in a order.
|
default LByteToIntFunction |
thenToInt(LDblToIntFunction after)
Combines two functions together in a order.
|
default LByteToLongFunction |
thenToLong(LDblToLongFunction after)
Combines two functions together in a order.
|
default LByteToSrtFunction |
thenToSrt(LDblToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
byte a,
LByteToDblFunction func)
From-To.
|
static double |
tryApplyAsDbl(byte a,
LByteToDblFunction func) |
static double |
tryApplyAsDbl(byte a,
LByteToDblFunction func,
ExWF<RuntimeException> exF) |
static double |
tryApplyAsDbl(byte a,
LByteToDblFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static double |
tryApplyAsDblThen(byte a,
LByteToDblFunction func,
LToDblFunction<Throwable> handler) |
default LByteToDblFunction |
trying(ExWF<RuntimeException> exF) |
default LByteToDblFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LByteToDblFunction |
tryingThen(LToDblFunction<Throwable> handler) |
default double |
tupleApplyAsDbl(LByteSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default double applyAsDbl(byte a)
double applyAsDblX(byte a)
throws Throwable
Implement this, but call applyAsDbl(byte a)
Throwabledefault double tupleApplyAsDbl(LByteSingle args)
default double handlingApplyAsDbl(byte a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LByteToDblFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default double applyAsDbl(byte a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LByteToDblFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default double applyAsDbl(byte a,
@Nonnull
ExWF<RuntimeException> exF)
default LByteToDblFunction trying(@Nonnull ExWF<RuntimeException> exF)
default double applyAsDblThen(byte a,
@Nonnull
LToDblFunction<Throwable> handler)
default LByteToDblFunction tryingThen(@Nonnull LToDblFunction<Throwable> handler)
default double nestingApplyAsDbl(byte a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default double shovingApplyAsDbl(byte a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static double handlingApplyAsDbl(byte a,
LByteToDblFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static double tryApplyAsDbl(byte a,
LByteToDblFunction func)
static double tryApplyAsDbl(byte a,
LByteToDblFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static double tryApplyAsDbl(byte a,
LByteToDblFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static double tryApplyAsDblThen(byte a,
LByteToDblFunction func,
@Nonnull
LToDblFunction<Throwable> handler)
default double failSafeApplyAsDbl(byte a,
@Nonnull
LByteToDblFunction failSafe)
static double failSafeApplyAsDbl(byte a,
LByteToDblFunction func,
@Nonnull
LByteToDblFunction failSafe)
static LByteToDblFunction failSafe(LByteToDblFunction func, @Nonnull LByteToDblFunction failSafe)
default double nonNullApplyAsDbl(byte 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,
byte a,
LByteToDblFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
byte a,
LByteToDblFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
byte a,
LByteToDblFunction func)
From-To. Intended to be used with non-capturing lambda.
default LDblSupplier capture(byte a)
Captures arguments but delays the evaluation.
static LByteToDblFunction constant(double r)
Creates function that always returns the same value.
@Nonnull static LByteToDblFunction byteToDblFunc(@Nonnull LByteToDblFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LByteToDblFunction recursive(@Nonnull LFunction<LByteToDblFunction,LByteToDblFunction> selfLambda)
@Nonnull static LByteToDblFunction byteToDblFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LByteToDblFunction byteToDblFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static double call(byte a,
@Nonnull
LByteToDblFunction lambda)
@Nonnull static LByteToDblFunction safe()
Safe instance. That always returns the same value (as produceDouble).
@Nonnull static LSupplier<LByteToDblFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LByteToDblFunction safe(@Nullable LByteToDblFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LByteToDblFunction> safeSupplier(@Nullable LSupplier<LByteToDblFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LByteToDblFunction compose(@Nonnull LByteUnaryOperator before)
Allows to manipulate the domain of the function.
static LByteToDblFunction composed(@Nonnull LByteUnaryOperator before, LByteToDblFunction after)
@Nonnull default <V> LToDblFunction<V> byteToDblFuncCompose(@Nonnull LToByteFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToDblFunction<V> composed(@Nonnull LToByteFunction<? super V> before, LByteToDblFunction after)
@Nonnull default <V> LByteFunction<V> then(@Nonnull LDblFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteUnaryOperator thenToByte(@Nonnull LDblToByteFunction after)
Combines two functions together in a order.
@Nonnull default LByteToSrtFunction thenToSrt(@Nonnull LDblToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LByteToIntFunction thenToInt(@Nonnull LDblToIntFunction after)
Combines two functions together in a order.
@Nonnull default LByteToLongFunction thenToLong(@Nonnull LDblToLongFunction after)
Combines two functions together in a order.
@Nonnull default LByteToFltFunction thenToFlt(@Nonnull LDblToFltFunction after)
Combines two functions together in a order.
@Nonnull default LByteToDblFunction thenToDbl(@Nonnull LDblUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LByteToCharFunction thenToChar(@Nonnull LDblToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBytePredicate thenToBool(@Nonnull LDblPredicate after)
Combines two functions together in a order.
static double produceDouble(byte a)
Does nothing (LByteToDblFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aByte> ia, C0 source, LDblConsumer 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.aByte> sa, C0 source, LDblConsumer 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.