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