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