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