@FunctionalInterface public interface LCharToLongFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aLong>, Domain1<aType.aChar>
Non-throwing functional interface (lambda) LCharToLongFunction for Java 8.
Type: function
Domain (lvl: 1): char a
Co-domain: long
| Modifier and Type | Interface and Description |
|---|---|
static class |
LCharToLongFunction.LCharToLongFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default long |
applyAsLong(char a) |
default long |
applyAsLong(char a,
ExWF<RuntimeException> exF) |
default long |
applyAsLong(char a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default long |
applyAsLongThen(char a,
LToLongFunction<Throwable> handler) |
long |
applyAsLongX(char a)
Implement this, but call applyAsLong(char a)
|
static long |
call(char a,
LCharToLongFunction lambda) |
default LLongSupplier |
capture(char a)
Captures arguments but delays the evaluation.
|
static LCharToLongFunction |
charToLongFunc(LCharToLongFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToLongFunction<V> |
charToLongFuncCompose(LToCharFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static LCharToLongFunction |
charToLongFuncThrowing(ExF<Throwable> exF) |
static LCharToLongFunction |
charToLongFuncThrowing(String message,
ExMF<Throwable> exF) |
default LCharToLongFunction |
compose(LCharUnaryOperator before)
Allows to manipulate the domain of the function.
|
static LCharToLongFunction |
composed(LCharUnaryOperator before,
LCharToLongFunction after) |
static <V> LToLongFunction<V> |
composed(LToCharFunction<? super V> before,
LCharToLongFunction after) |
static LCharToLongFunction |
constant(long r)
Creates function that always returns the same value.
|
static LCharToLongFunction |
failSafe(LCharToLongFunction func,
LCharToLongFunction failSafe) |
default long |
failSafeApplyAsLong(char a,
LCharToLongFunction failSafe) |
static long |
failSafeApplyAsLong(char a,
LCharToLongFunction func,
LCharToLongFunction failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aChar> ia,
C0 source,
LLongConsumer 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,
LCharToLongFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
char a,
LCharToLongFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LCharToLongFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default long |
handlingApplyAsLong(char a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static long |
handlingApplyAsLong(char a,
LCharToLongFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aChar> sa,
C0 source,
LLongConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default long |
nestingApplyAsLong(char a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default long |
nonNullApplyAsLong(char a)
Just to mirror the method: Ensures the result is not null
|
static long |
produceLong(char a)
Does nothing (LCharToLongFunction) Function
|
static LCharToLongFunction |
recursive(LFunction<LCharToLongFunction,LCharToLongFunction> selfLambda) |
static LCharToLongFunction |
safe()
Safe instance.
|
static LCharToLongFunction |
safe(LCharToLongFunction other)
Safe wrapping.
|
static LSupplier<LCharToLongFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LCharToLongFunction> |
safeSupplier(LSupplier<LCharToLongFunction> supplier)
Safe supplier.
|
default long |
shovingApplyAsLong(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(LLongFunction<? extends V> after)
Combines two functions together in a order.
|
default LCharPredicate |
thenToBool(LLongPredicate after)
Combines two functions together in a order.
|
default LCharToByteFunction |
thenToByte(LLongToByteFunction after)
Combines two functions together in a order.
|
default LCharUnaryOperator |
thenToChar(LLongToCharFunction after)
Combines two functions together in a order.
|
default LCharToDblFunction |
thenToDbl(LLongToDblFunction after)
Combines two functions together in a order.
|
default LCharToFltFunction |
thenToFlt(LLongToFltFunction after)
Combines two functions together in a order.
|
default LCharToIntFunction |
thenToInt(LLongToIntFunction after)
Combines two functions together in a order.
|
default LCharToLongFunction |
thenToLong(LLongUnaryOperator after)
Combines two functions together in a order.
|
default LCharToSrtFunction |
thenToSrt(LLongToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
char a,
LCharToLongFunction func)
From-To.
|
static long |
tryApplyAsLong(char a,
LCharToLongFunction func) |
static long |
tryApplyAsLong(char a,
LCharToLongFunction func,
ExWF<RuntimeException> exF) |
static long |
tryApplyAsLong(char a,
LCharToLongFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static long |
tryApplyAsLongThen(char a,
LCharToLongFunction func,
LToLongFunction<Throwable> handler) |
default LCharToLongFunction |
trying(ExWF<RuntimeException> exF) |
default LCharToLongFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LCharToLongFunction |
tryingThen(LToLongFunction<Throwable> handler) |
default long |
tupleApplyAsLong(LCharSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default long applyAsLong(char a)
long applyAsLongX(char a)
throws Throwable
Implement this, but call applyAsLong(char a)
Throwabledefault long tupleApplyAsLong(LCharSingle args)
default long handlingApplyAsLong(char a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LCharToLongFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default long applyAsLong(char a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LCharToLongFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default long applyAsLong(char a,
@Nonnull
ExWF<RuntimeException> exF)
default LCharToLongFunction trying(@Nonnull ExWF<RuntimeException> exF)
default long applyAsLongThen(char a,
@Nonnull
LToLongFunction<Throwable> handler)
default LCharToLongFunction tryingThen(@Nonnull LToLongFunction<Throwable> handler)
default long nestingApplyAsLong(char a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default long shovingApplyAsLong(char a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static long handlingApplyAsLong(char a,
LCharToLongFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static long tryApplyAsLong(char a,
LCharToLongFunction func)
static long tryApplyAsLong(char a,
LCharToLongFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static long tryApplyAsLong(char a,
LCharToLongFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static long tryApplyAsLongThen(char a,
LCharToLongFunction func,
@Nonnull
LToLongFunction<Throwable> handler)
default long failSafeApplyAsLong(char a,
@Nonnull
LCharToLongFunction failSafe)
static long failSafeApplyAsLong(char a,
LCharToLongFunction func,
@Nonnull
LCharToLongFunction failSafe)
static LCharToLongFunction failSafe(LCharToLongFunction func, @Nonnull LCharToLongFunction failSafe)
default long nonNullApplyAsLong(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,
LCharToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
char a,
LCharToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
char a,
LCharToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
default LLongSupplier capture(char a)
Captures arguments but delays the evaluation.
static LCharToLongFunction constant(long r)
Creates function that always returns the same value.
@Nonnull static LCharToLongFunction charToLongFunc(@Nonnull LCharToLongFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LCharToLongFunction recursive(@Nonnull LFunction<LCharToLongFunction,LCharToLongFunction> selfLambda)
@Nonnull static LCharToLongFunction charToLongFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LCharToLongFunction charToLongFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static long call(char a,
@Nonnull
LCharToLongFunction lambda)
@Nonnull static LCharToLongFunction safe()
Safe instance. That always returns the same value (as produceLong).
@Nonnull static LSupplier<LCharToLongFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LCharToLongFunction safe(@Nullable LCharToLongFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LCharToLongFunction> safeSupplier(@Nullable LSupplier<LCharToLongFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LCharToLongFunction compose(@Nonnull LCharUnaryOperator before)
Allows to manipulate the domain of the function.
static LCharToLongFunction composed(@Nonnull LCharUnaryOperator before, LCharToLongFunction after)
@Nonnull default <V> LToLongFunction<V> charToLongFuncCompose(@Nonnull LToCharFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToLongFunction<V> composed(@Nonnull LToCharFunction<? super V> before, LCharToLongFunction after)
@Nonnull default <V> LCharFunction<V> then(@Nonnull LLongFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LCharToByteFunction thenToByte(@Nonnull LLongToByteFunction after)
Combines two functions together in a order.
@Nonnull default LCharToSrtFunction thenToSrt(@Nonnull LLongToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LCharToIntFunction thenToInt(@Nonnull LLongToIntFunction after)
Combines two functions together in a order.
@Nonnull default LCharToLongFunction thenToLong(@Nonnull LLongUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LCharToFltFunction thenToFlt(@Nonnull LLongToFltFunction after)
Combines two functions together in a order.
@Nonnull default LCharToDblFunction thenToDbl(@Nonnull LLongToDblFunction after)
Combines two functions together in a order.
@Nonnull default LCharUnaryOperator thenToChar(@Nonnull LLongToCharFunction after)
Combines two functions together in a order.
@Nonnull default LCharPredicate thenToBool(@Nonnull LLongPredicate after)
Combines two functions together in a order.
static long produceLong(char a)
Does nothing (LCharToLongFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aChar> ia, C0 source, LLongConsumer 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, LLongConsumer 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.