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