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