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