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