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