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