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