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