@FunctionalInterface public interface LFltSupplier extends MetaSupplier, MetaInterface.NonThrowing, Codomain<aType.aFloat>, Domain0
Non-throwing functional interface (lambda) LFltSupplier for Java 8.
Type: supplier
Domain (lvl: 0): none
Co-domain: float
| Modifier and Type | Interface and Description |
|---|---|
static class |
LFltSupplier.LFltSupplierSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static float |
call(LFltSupplier lambda) |
static LFltSupplier |
failSafe(LFltSupplier func,
LFltSupplier failSafe) |
default float |
failSafeGetAsFlt(LFltSupplier failSafe) |
static float |
failSafeGetAsFlt(LFltSupplier func,
LFltSupplier failSafe) |
static LFltSupplier |
fltSup(LFltSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LFltSupplier |
fltSupThrowing(ExF<Throwable> exF) |
static LFltSupplier |
fltSupThrowing(String message,
ExMF<Throwable> exF) |
static void |
fromTill(int min_i,
int max_i,
LFltSupplier func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
LFltSupplier func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default float |
getAsFlt() |
default float |
getAsFlt(ExWF<RuntimeException> exF) |
default float |
getAsFlt(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default float |
getAsFltThen(LToFltFunction<Throwable> handler) |
float |
getAsFltX()
Implement this, but call getAsFlt()
|
default LFltSupplier |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default float |
handlingGetAsFlt(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static float |
handlingGetAsFlt(LFltSupplier func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default float |
nestingGetAsFlt()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default float |
nonNullGetAsFlt()
Just to mirror the method: Ensures the result is not null
|
static LFltSupplier |
of(float r)
Creates function that always returns the same value.
|
static float |
produceFloat()
Does nothing (LFltSupplier) Supplier
|
static LFltSupplier |
recursive(LFunction<LFltSupplier,LFltSupplier> selfLambda) |
static LFltSupplier |
safe()
Safe instance.
|
static LFltSupplier |
safe(LFltSupplier other)
Safe wrapping.
|
static LSupplier<LFltSupplier> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LFltSupplier> |
safeSupplier(LSupplier<LFltSupplier> supplier)
Safe supplier.
|
default float |
shovingGetAsFlt()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static void |
times(int max_i,
LFltSupplier func)
From-To.
|
default LBoolSupplier |
toBoolSup(LFltPredicate after)
Combines two functions together in a order.
|
default LByteSupplier |
toByteSup(LFltToByteFunction after)
Combines two functions together in a order.
|
default LCharSupplier |
toCharSup(LFltToCharFunction after)
Combines two functions together in a order.
|
default LDblSupplier |
toDblSup(LFltToDblFunction after)
Combines two functions together in a order.
|
default LFltSupplier |
toFltSup(LFltUnaryOperator after)
Combines two functions together in a order.
|
default LIntSupplier |
toIntSup(LFltToIntFunction after)
Combines two functions together in a order.
|
default LLongSupplier |
toLongSup(LFltToLongFunction after)
Combines two functions together in a order.
|
default LSrtSupplier |
toSrtSup(LFltToSrtFunction after)
Combines two functions together in a order.
|
default <V> LSupplier<V> |
toSup(LFltFunction<? extends V> after)
Combines two functions together in a order.
|
static float |
tryGetAsFlt(LFltSupplier func) |
static float |
tryGetAsFlt(LFltSupplier func,
ExWF<RuntimeException> exF) |
static float |
tryGetAsFlt(LFltSupplier func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static float |
tryGetAsFltThen(LFltSupplier func,
LToFltFunction<Throwable> handler) |
default LFltSupplier |
trying(ExWF<RuntimeException> exF) |
default LFltSupplier |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LFltSupplier |
tryingThen(LToFltFunction<Throwable> handler) |
default float |
tupleGetAsFlt(LTuple.Void args) |
isSupplierformatTo, isAction, isConsumer, isFunction, isOperator, isPredicateisThrowingstatic final String DESCRIPTION
default float getAsFlt()
default float tupleGetAsFlt(LTuple.Void args)
default float handlingGetAsFlt(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LFltSupplier handling(HandlingInstructions<Throwable,RuntimeException> handling)
default float getAsFlt(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LFltSupplier trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default float getAsFlt(@Nonnull ExWF<RuntimeException> exF)
default LFltSupplier trying(@Nonnull ExWF<RuntimeException> exF)
default float getAsFltThen(@Nonnull LToFltFunction<Throwable> handler)
default LFltSupplier tryingThen(@Nonnull LToFltFunction<Throwable> handler)
default float nestingGetAsFlt()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default float shovingGetAsFlt()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static float handlingGetAsFlt(LFltSupplier func, HandlingInstructions<Throwable,RuntimeException> handling)
static float tryGetAsFlt(LFltSupplier func)
static float tryGetAsFlt(LFltSupplier func, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
static float tryGetAsFlt(LFltSupplier func, @Nonnull ExWF<RuntimeException> exF)
static float tryGetAsFltThen(LFltSupplier func, @Nonnull LToFltFunction<Throwable> handler)
default float failSafeGetAsFlt(@Nonnull LFltSupplier failSafe)
static float failSafeGetAsFlt(LFltSupplier func, @Nonnull LFltSupplier failSafe)
static LFltSupplier failSafe(LFltSupplier func, @Nonnull LFltSupplier failSafe)
default float nonNullGetAsFlt()
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,
LFltSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
LFltSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
LFltSupplier func)
From-To. Intended to be used with non-capturing lambda.
static LFltSupplier of(float r)
Creates function that always returns the same value.
@Nonnull static LFltSupplier fltSup(@Nonnull LFltSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LFltSupplier recursive(@Nonnull LFunction<LFltSupplier,LFltSupplier> selfLambda)
@Nonnull static LFltSupplier fltSupThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LFltSupplier fltSupThrowing(String message, @Nonnull ExMF<Throwable> exF)
static float call(@Nonnull LFltSupplier lambda)
@Nonnull static LFltSupplier safe()
Safe instance. That always returns the same value (as produceFloat).
@Nonnull static LSupplier<LFltSupplier> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LFltSupplier safe(@Nullable LFltSupplier other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LFltSupplier> safeSupplier(@Nullable LSupplier<LFltSupplier> 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 LFltFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteSupplier toByteSup(@Nonnull LFltToByteFunction after)
Combines two functions together in a order.
@Nonnull default LSrtSupplier toSrtSup(@Nonnull LFltToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LIntSupplier toIntSup(@Nonnull LFltToIntFunction after)
Combines two functions together in a order.
@Nonnull default LLongSupplier toLongSup(@Nonnull LFltToLongFunction after)
Combines two functions together in a order.
@Nonnull default LFltSupplier toFltSup(@Nonnull LFltUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LDblSupplier toDblSup(@Nonnull LFltToDblFunction after)
Combines two functions together in a order.
@Nonnull default LCharSupplier toCharSup(@Nonnull LFltToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBoolSupplier toBoolSup(@Nonnull LFltPredicate after)
Combines two functions together in a order.
static float produceFloat()
Does nothing (LFltSupplier) Supplier
Copyright © 2019. All rights reserved.