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