@FunctionalInterface public interface LSrtSupplier extends MetaSupplier, MetaInterface.NonThrowing, Codomain<aType.aShort>, Domain0
Non-throwing functional interface (lambda) LSrtSupplier for Java 8.
Type: supplier
Domain (lvl: 0): none
Co-domain: short
| Modifier and Type | Interface and Description |
|---|---|
static class |
LSrtSupplier.LSrtSupplierSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static short |
call(LSrtSupplier lambda) |
static LSrtSupplier |
failSafe(LSrtSupplier func,
LSrtSupplier failSafe) |
default short |
failSafeGetAsSrt(LSrtSupplier failSafe) |
static short |
failSafeGetAsSrt(LSrtSupplier func,
LSrtSupplier failSafe) |
static void |
fromTill(int min_i,
int max_i,
LSrtSupplier func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
LSrtSupplier func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default short |
getAsSrt() |
default short |
getAsSrt(ExWF<RuntimeException> exF) |
default short |
getAsSrt(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default short |
getAsSrtThen(LToSrtFunction<Throwable> handler) |
short |
getAsSrtX()
Implement this, but call getAsSrt()
|
default LSrtSupplier |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default short |
handlingGetAsSrt(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static short |
handlingGetAsSrt(LSrtSupplier func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default short |
nestingGetAsSrt()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default short |
nonNullGetAsSrt()
Just to mirror the method: Ensures the result is not null
|
static LSrtSupplier |
of(short r)
Creates function that always returns the same value.
|
static short |
produceShort()
Does nothing (LSrtSupplier) Supplier
|
static LSrtSupplier |
recursive(LFunction<LSrtSupplier,LSrtSupplier> selfLambda) |
static LSrtSupplier |
safe()
Safe instance.
|
static LSrtSupplier |
safe(LSrtSupplier other)
Safe wrapping.
|
static LSupplier<LSrtSupplier> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LSrtSupplier> |
safeSupplier(LSupplier<LSrtSupplier> supplier)
Safe supplier.
|
default short |
shovingGetAsSrt()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static LSrtSupplier |
srtSup(LSrtSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LSrtSupplier |
srtSupThrowing(ExF<Throwable> exF) |
static LSrtSupplier |
srtSupThrowing(String message,
ExMF<Throwable> exF) |
static void |
times(int max_i,
LSrtSupplier func)
From-To.
|
default LBoolSupplier |
toBoolSup(LSrtPredicate after)
Combines two functions together in a order.
|
default LByteSupplier |
toByteSup(LSrtToByteFunction after)
Combines two functions together in a order.
|
default LCharSupplier |
toCharSup(LSrtToCharFunction after)
Combines two functions together in a order.
|
default LDblSupplier |
toDblSup(LSrtToDblFunction after)
Combines two functions together in a order.
|
default LFltSupplier |
toFltSup(LSrtToFltFunction after)
Combines two functions together in a order.
|
default LIntSupplier |
toIntSup(LSrtToIntFunction after)
Combines two functions together in a order.
|
default LLongSupplier |
toLongSup(LSrtToLongFunction after)
Combines two functions together in a order.
|
default LSrtSupplier |
toSrtSup(LSrtUnaryOperator after)
Combines two functions together in a order.
|
default <V> LSupplier<V> |
toSup(LSrtFunction<? extends V> after)
Combines two functions together in a order.
|
static short |
tryGetAsSrt(LSrtSupplier func) |
static short |
tryGetAsSrt(LSrtSupplier func,
ExWF<RuntimeException> exF) |
static short |
tryGetAsSrt(LSrtSupplier func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static short |
tryGetAsSrtThen(LSrtSupplier func,
LToSrtFunction<Throwable> handler) |
default LSrtSupplier |
trying(ExWF<RuntimeException> exF) |
default LSrtSupplier |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LSrtSupplier |
tryingThen(LToSrtFunction<Throwable> handler) |
default short |
tupleGetAsSrt(LTuple.Void args) |
isSupplierformatTo, isAction, isConsumer, isFunction, isOperator, isPredicateisThrowingstatic final String DESCRIPTION
default short getAsSrt()
default short tupleGetAsSrt(LTuple.Void args)
default short handlingGetAsSrt(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LSrtSupplier handling(HandlingInstructions<Throwable,RuntimeException> handling)
default short getAsSrt(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LSrtSupplier trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default short getAsSrt(@Nonnull ExWF<RuntimeException> exF)
default LSrtSupplier trying(@Nonnull ExWF<RuntimeException> exF)
default short getAsSrtThen(@Nonnull LToSrtFunction<Throwable> handler)
default LSrtSupplier tryingThen(@Nonnull LToSrtFunction<Throwable> handler)
default short nestingGetAsSrt()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default short shovingGetAsSrt()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static short handlingGetAsSrt(LSrtSupplier func, HandlingInstructions<Throwable,RuntimeException> handling)
static short tryGetAsSrt(LSrtSupplier func)
static short tryGetAsSrt(LSrtSupplier func, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
static short tryGetAsSrt(LSrtSupplier func, @Nonnull ExWF<RuntimeException> exF)
static short tryGetAsSrtThen(LSrtSupplier func, @Nonnull LToSrtFunction<Throwable> handler)
default short failSafeGetAsSrt(@Nonnull LSrtSupplier failSafe)
static short failSafeGetAsSrt(LSrtSupplier func, @Nonnull LSrtSupplier failSafe)
static LSrtSupplier failSafe(LSrtSupplier func, @Nonnull LSrtSupplier failSafe)
default short nonNullGetAsSrt()
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,
LSrtSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
LSrtSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
LSrtSupplier func)
From-To. Intended to be used with non-capturing lambda.
static LSrtSupplier of(short r)
Creates function that always returns the same value.
@Nonnull static LSrtSupplier srtSup(@Nonnull LSrtSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LSrtSupplier recursive(@Nonnull LFunction<LSrtSupplier,LSrtSupplier> selfLambda)
@Nonnull static LSrtSupplier srtSupThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LSrtSupplier srtSupThrowing(String message, @Nonnull ExMF<Throwable> exF)
static short call(@Nonnull LSrtSupplier lambda)
@Nonnull static LSrtSupplier safe()
Safe instance. That always returns the same value (as produceShort).
@Nonnull static LSupplier<LSrtSupplier> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LSrtSupplier safe(@Nullable LSrtSupplier other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LSrtSupplier> safeSupplier(@Nullable LSupplier<LSrtSupplier> 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 LSrtFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteSupplier toByteSup(@Nonnull LSrtToByteFunction after)
Combines two functions together in a order.
@Nonnull default LSrtSupplier toSrtSup(@Nonnull LSrtUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LIntSupplier toIntSup(@Nonnull LSrtToIntFunction after)
Combines two functions together in a order.
@Nonnull default LLongSupplier toLongSup(@Nonnull LSrtToLongFunction after)
Combines two functions together in a order.
@Nonnull default LFltSupplier toFltSup(@Nonnull LSrtToFltFunction after)
Combines two functions together in a order.
@Nonnull default LDblSupplier toDblSup(@Nonnull LSrtToDblFunction after)
Combines two functions together in a order.
@Nonnull default LCharSupplier toCharSup(@Nonnull LSrtToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBoolSupplier toBoolSup(@Nonnull LSrtPredicate after)
Combines two functions together in a order.
static short produceShort()
Does nothing (LSrtSupplier) Supplier
Copyright © 2019. All rights reserved.