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