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