@FunctionalInterface public interface LDblSupplier extends java.util.function.DoubleSupplier, MetaSupplier, MetaInterface.NonThrowing, Codomain<aType.aDouble>, Domain0
Non-throwing functional interface (lambda) LDblSupplier for Java 8.
Type: supplier
Domain (lvl: 0): none
Co-domain: double
| Modifier and Type | Interface and Description |
|---|---|
static class |
LDblSupplier.LDblSupplierSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static double |
call(LDblSupplier lambda) |
static LDblSupplier |
dblSup(LDblSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LDblSupplier |
dblSupThrowing(ExF<Throwable> exF) |
static LDblSupplier |
dblSupThrowing(String message,
ExMF<Throwable> exF) |
static LDblSupplier |
failSafe(LDblSupplier func,
LDblSupplier failSafe) |
default double |
failSafeGetAsDbl(LDblSupplier failSafe) |
static double |
failSafeGetAsDbl(LDblSupplier func,
LDblSupplier failSafe) |
static void |
fromTill(int min_i,
int max_i,
LDblSupplier func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
LDblSupplier func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default double |
getAsDbl() |
default double |
getAsDbl(ExWF<RuntimeException> exF) |
default double |
getAsDbl(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default double |
getAsDblThen(LToDblFunction<Throwable> handler) |
double |
getAsDblX()
Implement this, but call getAsDbl()
|
default double |
getAsDouble()
Deprecated.
Calling this method via LDblSupplier interface should be discouraged.
|
default LDblSupplier |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default double |
handlingGetAsDbl(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static double |
handlingGetAsDbl(LDblSupplier func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default double |
nestingGetAsDbl()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default double |
nonNullGetAsDbl()
Just to mirror the method: Ensures the result is not null
|
static LDblSupplier |
of(double r)
Creates function that always returns the same value.
|
static double |
produceDouble()
Does nothing (LDblSupplier) Supplier
|
static LDblSupplier |
recursive(LFunction<LDblSupplier,LDblSupplier> selfLambda) |
static LDblSupplier |
safe()
Safe instance.
|
static LDblSupplier |
safe(LDblSupplier other)
Safe wrapping.
|
static LSupplier<LDblSupplier> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LDblSupplier> |
safeSupplier(LSupplier<LDblSupplier> supplier)
Safe supplier.
|
default double |
shovingGetAsDbl()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static void |
times(int max_i,
LDblSupplier func)
From-To.
|
default LBoolSupplier |
toBoolSup(LDblPredicate after)
Combines two functions together in a order.
|
default LByteSupplier |
toByteSup(LDblToByteFunction after)
Combines two functions together in a order.
|
default LCharSupplier |
toCharSup(LDblToCharFunction after)
Combines two functions together in a order.
|
default LDblSupplier |
toDblSup(LDblUnaryOperator after)
Combines two functions together in a order.
|
default LFltSupplier |
toFltSup(LDblToFltFunction after)
Combines two functions together in a order.
|
default LIntSupplier |
toIntSup(LDblToIntFunction after)
Combines two functions together in a order.
|
default LLongSupplier |
toLongSup(LDblToLongFunction after)
Combines two functions together in a order.
|
default LSrtSupplier |
toSrtSup(LDblToSrtFunction after)
Combines two functions together in a order.
|
default <V> LSupplier<V> |
toSup(LDblFunction<? extends V> after)
Combines two functions together in a order.
|
static double |
tryGetAsDbl(LDblSupplier func) |
static double |
tryGetAsDbl(LDblSupplier func,
ExWF<RuntimeException> exF) |
static double |
tryGetAsDbl(LDblSupplier func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static double |
tryGetAsDblThen(LDblSupplier func,
LToDblFunction<Throwable> handler) |
default LDblSupplier |
trying(ExWF<RuntimeException> exF) |
default LDblSupplier |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LDblSupplier |
tryingThen(LToDblFunction<Throwable> handler) |
default double |
tupleGetAsDbl(LTuple.Void args) |
static LDblSupplier |
wrap(java.util.function.DoubleSupplier other)
Wraps JRE instance.
|
isSupplierformatTo, isAction, isConsumer, isFunction, isOperator, isPredicateisThrowingstatic final String DESCRIPTION
@Deprecated default double getAsDouble()
Default implementation for JRE method that calls exception nesting method.
getAsDouble in interface java.util.function.DoubleSupplierdefault double getAsDbl()
default double tupleGetAsDbl(LTuple.Void args)
default double handlingGetAsDbl(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LDblSupplier handling(HandlingInstructions<Throwable,RuntimeException> handling)
default double getAsDbl(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LDblSupplier trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default double getAsDbl(@Nonnull ExWF<RuntimeException> exF)
default LDblSupplier trying(@Nonnull ExWF<RuntimeException> exF)
default double getAsDblThen(@Nonnull LToDblFunction<Throwable> handler)
default LDblSupplier tryingThen(@Nonnull LToDblFunction<Throwable> handler)
default double nestingGetAsDbl()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default double shovingGetAsDbl()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static double handlingGetAsDbl(LDblSupplier func, HandlingInstructions<Throwable,RuntimeException> handling)
static double tryGetAsDbl(LDblSupplier func)
static double tryGetAsDbl(LDblSupplier func, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
static double tryGetAsDbl(LDblSupplier func, @Nonnull ExWF<RuntimeException> exF)
static double tryGetAsDblThen(LDblSupplier func, @Nonnull LToDblFunction<Throwable> handler)
default double failSafeGetAsDbl(@Nonnull LDblSupplier failSafe)
static double failSafeGetAsDbl(LDblSupplier func, @Nonnull LDblSupplier failSafe)
static LDblSupplier failSafe(LDblSupplier func, @Nonnull LDblSupplier failSafe)
default double nonNullGetAsDbl()
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,
LDblSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
LDblSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
LDblSupplier func)
From-To. Intended to be used with non-capturing lambda.
static LDblSupplier of(double r)
Creates function that always returns the same value.
@Nonnull static LDblSupplier dblSup(@Nonnull LDblSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LDblSupplier recursive(@Nonnull LFunction<LDblSupplier,LDblSupplier> selfLambda)
@Nonnull static LDblSupplier dblSupThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LDblSupplier dblSupThrowing(String message, @Nonnull ExMF<Throwable> exF)
static double call(@Nonnull LDblSupplier lambda)
@Nonnull static LDblSupplier wrap(java.util.function.DoubleSupplier other)
Wraps JRE instance.
@Nonnull static LDblSupplier safe()
Safe instance. That always returns the same value (as produceDouble).
@Nonnull static LSupplier<LDblSupplier> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LDblSupplier safe(@Nullable LDblSupplier other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LDblSupplier> safeSupplier(@Nullable LSupplier<LDblSupplier> 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 LDblFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteSupplier toByteSup(@Nonnull LDblToByteFunction after)
Combines two functions together in a order.
@Nonnull default LSrtSupplier toSrtSup(@Nonnull LDblToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LIntSupplier toIntSup(@Nonnull LDblToIntFunction after)
Combines two functions together in a order.
@Nonnull default LLongSupplier toLongSup(@Nonnull LDblToLongFunction after)
Combines two functions together in a order.
@Nonnull default LFltSupplier toFltSup(@Nonnull LDblToFltFunction after)
Combines two functions together in a order.
@Nonnull default LDblSupplier toDblSup(@Nonnull LDblUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LCharSupplier toCharSup(@Nonnull LDblToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBoolSupplier toBoolSup(@Nonnull LDblPredicate after)
Combines two functions together in a order.
static double produceDouble()
Does nothing (LDblSupplier) Supplier
Copyright © 2019. All rights reserved.