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