@FunctionalInterface public interface LCharSupplier extends MetaSupplier, MetaInterface.NonThrowing, Codomain<aType.aChar>, Domain0
Non-throwing functional interface (lambda) LCharSupplier for Java 8.
Type: supplier
Domain (lvl: 0): none
Co-domain: char
| Modifier and Type | Interface and Description |
|---|---|
static class |
LCharSupplier.LCharSupplierSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static char |
call(LCharSupplier lambda) |
static LCharSupplier |
charSup(LCharSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LCharSupplier |
charSupThrowing(ExF<Throwable> exF) |
static LCharSupplier |
charSupThrowing(String message,
ExMF<Throwable> exF) |
static LCharSupplier |
failSafe(LCharSupplier func,
LCharSupplier failSafe) |
default char |
failSafeGetAsChar(LCharSupplier failSafe) |
static char |
failSafeGetAsChar(LCharSupplier func,
LCharSupplier failSafe) |
static void |
fromTill(int min_i,
int max_i,
LCharSupplier func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
LCharSupplier func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default char |
getAsChar() |
default char |
getAsChar(ExWF<RuntimeException> exF) |
default char |
getAsChar(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default char |
getAsCharThen(LToCharFunction<Throwable> handler) |
char |
getAsCharX()
Implement this, but call getAsChar()
|
default LCharSupplier |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default char |
handlingGetAsChar(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static char |
handlingGetAsChar(LCharSupplier func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default char |
nestingGetAsChar()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default char |
nonNullGetAsChar()
Just to mirror the method: Ensures the result is not null
|
static LCharSupplier |
of(char r)
Creates function that always returns the same value.
|
static char |
produceChar()
Does nothing (LCharSupplier) Supplier
|
static LCharSupplier |
recursive(LFunction<LCharSupplier,LCharSupplier> selfLambda) |
static LCharSupplier |
safe()
Safe instance.
|
static LCharSupplier |
safe(LCharSupplier other)
Safe wrapping.
|
static LSupplier<LCharSupplier> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LCharSupplier> |
safeSupplier(LSupplier<LCharSupplier> supplier)
Safe supplier.
|
default char |
shovingGetAsChar()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static void |
times(int max_i,
LCharSupplier func)
From-To.
|
default LBoolSupplier |
toBoolSup(LCharPredicate after)
Combines two functions together in a order.
|
default LByteSupplier |
toByteSup(LCharToByteFunction after)
Combines two functions together in a order.
|
default LCharSupplier |
toCharSup(LCharUnaryOperator after)
Combines two functions together in a order.
|
default LDblSupplier |
toDblSup(LCharToDblFunction after)
Combines two functions together in a order.
|
default LFltSupplier |
toFltSup(LCharToFltFunction after)
Combines two functions together in a order.
|
default LIntSupplier |
toIntSup(LCharToIntFunction after)
Combines two functions together in a order.
|
default LLongSupplier |
toLongSup(LCharToLongFunction after)
Combines two functions together in a order.
|
default LSrtSupplier |
toSrtSup(LCharToSrtFunction after)
Combines two functions together in a order.
|
default <V> LSupplier<V> |
toSup(LCharFunction<? extends V> after)
Combines two functions together in a order.
|
static char |
tryGetAsChar(LCharSupplier func) |
static char |
tryGetAsChar(LCharSupplier func,
ExWF<RuntimeException> exF) |
static char |
tryGetAsChar(LCharSupplier func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static char |
tryGetAsCharThen(LCharSupplier func,
LToCharFunction<Throwable> handler) |
default LCharSupplier |
trying(ExWF<RuntimeException> exF) |
default LCharSupplier |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LCharSupplier |
tryingThen(LToCharFunction<Throwable> handler) |
default char |
tupleGetAsChar(LTuple.Void args) |
isSupplierformatTo, isAction, isConsumer, isFunction, isOperator, isPredicateisThrowingstatic final String DESCRIPTION
default char getAsChar()
char getAsCharX()
throws Throwable
Implement this, but call getAsChar()
Throwabledefault char tupleGetAsChar(LTuple.Void args)
default char handlingGetAsChar(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LCharSupplier handling(HandlingInstructions<Throwable,RuntimeException> handling)
default char getAsChar(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LCharSupplier trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default char getAsChar(@Nonnull ExWF<RuntimeException> exF)
default LCharSupplier trying(@Nonnull ExWF<RuntimeException> exF)
default char getAsCharThen(@Nonnull LToCharFunction<Throwable> handler)
default LCharSupplier tryingThen(@Nonnull LToCharFunction<Throwable> handler)
default char nestingGetAsChar()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default char shovingGetAsChar()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static char handlingGetAsChar(LCharSupplier func, HandlingInstructions<Throwable,RuntimeException> handling)
static char tryGetAsChar(LCharSupplier func)
static char tryGetAsChar(LCharSupplier func, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
static char tryGetAsChar(LCharSupplier func, @Nonnull ExWF<RuntimeException> exF)
static char tryGetAsCharThen(LCharSupplier func, @Nonnull LToCharFunction<Throwable> handler)
default char failSafeGetAsChar(@Nonnull LCharSupplier failSafe)
static char failSafeGetAsChar(LCharSupplier func, @Nonnull LCharSupplier failSafe)
static LCharSupplier failSafe(LCharSupplier func, @Nonnull LCharSupplier failSafe)
default char nonNullGetAsChar()
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,
LCharSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
LCharSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
LCharSupplier func)
From-To. Intended to be used with non-capturing lambda.
static LCharSupplier of(char r)
Creates function that always returns the same value.
@Nonnull static LCharSupplier charSup(@Nonnull LCharSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LCharSupplier recursive(@Nonnull LFunction<LCharSupplier,LCharSupplier> selfLambda)
@Nonnull static LCharSupplier charSupThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LCharSupplier charSupThrowing(String message, @Nonnull ExMF<Throwable> exF)
static char call(@Nonnull LCharSupplier lambda)
@Nonnull static LCharSupplier safe()
Safe instance. That always returns the same value (as produceChar).
@Nonnull static LSupplier<LCharSupplier> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LCharSupplier safe(@Nullable LCharSupplier other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LCharSupplier> safeSupplier(@Nullable LSupplier<LCharSupplier> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default <V> LSupplier<V> toSup(@Nonnull LCharFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteSupplier toByteSup(@Nonnull LCharToByteFunction after)
Combines two functions together in a order.
@Nonnull default LSrtSupplier toSrtSup(@Nonnull LCharToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LIntSupplier toIntSup(@Nonnull LCharToIntFunction after)
Combines two functions together in a order.
@Nonnull default LLongSupplier toLongSup(@Nonnull LCharToLongFunction after)
Combines two functions together in a order.
@Nonnull default LFltSupplier toFltSup(@Nonnull LCharToFltFunction after)
Combines two functions together in a order.
@Nonnull default LDblSupplier toDblSup(@Nonnull LCharToDblFunction after)
Combines two functions together in a order.
@Nonnull default LCharSupplier toCharSup(@Nonnull LCharUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBoolSupplier toBoolSup(@Nonnull LCharPredicate after)
Combines two functions together in a order.
static char produceChar()
Does nothing (LCharSupplier) Supplier
Copyright © 2019. All rights reserved.