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