@FunctionalInterface public interface LLongSupplier extends java.util.function.LongSupplier, MetaSupplier, MetaInterface.NonThrowing, Codomain<aType.aLong>, Domain0
Non-throwing functional interface (lambda) LLongSupplier for Java 8.
Type: supplier
Domain (lvl: 0): none
Co-domain: long
| Modifier and Type | Interface and Description |
|---|---|
static class |
LLongSupplier.LLongSupplierSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static long |
call(LLongSupplier lambda) |
static LLongSupplier |
failSafe(LLongSupplier func,
LLongSupplier failSafe) |
default long |
failSafeGetAsLong(LLongSupplier failSafe) |
static long |
failSafeGetAsLong(LLongSupplier func,
LLongSupplier failSafe) |
static void |
fromTill(int min_i,
int max_i,
LLongSupplier func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
LLongSupplier func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default long |
getAsLong() |
default long |
getAsLong(ExWF<RuntimeException> exF) |
default long |
getAsLong(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default long |
getAsLongThen(LToLongFunction<Throwable> handler) |
long |
getAsLongX()
Implement this, but call getAsLong()
|
default LLongSupplier |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default long |
handlingGetAsLong(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static long |
handlingGetAsLong(LLongSupplier func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static LLongSupplier |
longSup(LLongSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LLongSupplier |
longSupThrowing(ExF<Throwable> exF) |
static LLongSupplier |
longSupThrowing(String message,
ExMF<Throwable> exF) |
default long |
nestingGetAsLong()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default long |
nonNullGetAsLong()
Just to mirror the method: Ensures the result is not null
|
static LLongSupplier |
of(long r)
Creates function that always returns the same value.
|
static long |
produceLong()
Does nothing (LLongSupplier) Supplier
|
static LLongSupplier |
recursive(LFunction<LLongSupplier,LLongSupplier> selfLambda) |
static LLongSupplier |
safe()
Safe instance.
|
static LLongSupplier |
safe(LLongSupplier other)
Safe wrapping.
|
static LSupplier<LLongSupplier> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LLongSupplier> |
safeSupplier(LSupplier<LLongSupplier> supplier)
Safe supplier.
|
default long |
shovingGetAsLong()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static void |
times(int max_i,
LLongSupplier func)
From-To.
|
default LBoolSupplier |
toBoolSup(LLongPredicate after)
Combines two functions together in a order.
|
default LByteSupplier |
toByteSup(LLongToByteFunction after)
Combines two functions together in a order.
|
default LCharSupplier |
toCharSup(LLongToCharFunction after)
Combines two functions together in a order.
|
default LDblSupplier |
toDblSup(LLongToDblFunction after)
Combines two functions together in a order.
|
default LFltSupplier |
toFltSup(LLongToFltFunction after)
Combines two functions together in a order.
|
default LIntSupplier |
toIntSup(LLongToIntFunction after)
Combines two functions together in a order.
|
default LLongSupplier |
toLongSup(LLongUnaryOperator after)
Combines two functions together in a order.
|
default LSrtSupplier |
toSrtSup(LLongToSrtFunction after)
Combines two functions together in a order.
|
default <V> LSupplier<V> |
toSup(LLongFunction<? extends V> after)
Combines two functions together in a order.
|
static long |
tryGetAsLong(LLongSupplier func) |
static long |
tryGetAsLong(LLongSupplier func,
ExWF<RuntimeException> exF) |
static long |
tryGetAsLong(LLongSupplier func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static long |
tryGetAsLongThen(LLongSupplier func,
LToLongFunction<Throwable> handler) |
default LLongSupplier |
trying(ExWF<RuntimeException> exF) |
default LLongSupplier |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LLongSupplier |
tryingThen(LToLongFunction<Throwable> handler) |
default long |
tupleGetAsLong(LTuple.Void args) |
static LLongSupplier |
wrap(java.util.function.LongSupplier other)
Wraps JRE instance.
|
isSupplierformatTo, isAction, isConsumer, isFunction, isOperator, isPredicateisThrowingstatic final String DESCRIPTION
default long getAsLong()
getAsLong in interface java.util.function.LongSupplierlong getAsLongX()
throws Throwable
Implement this, but call getAsLong()
Throwabledefault long tupleGetAsLong(LTuple.Void args)
default long handlingGetAsLong(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LLongSupplier handling(HandlingInstructions<Throwable,RuntimeException> handling)
default long getAsLong(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LLongSupplier trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default long getAsLong(@Nonnull ExWF<RuntimeException> exF)
default LLongSupplier trying(@Nonnull ExWF<RuntimeException> exF)
default long getAsLongThen(@Nonnull LToLongFunction<Throwable> handler)
default LLongSupplier tryingThen(@Nonnull LToLongFunction<Throwable> handler)
default long nestingGetAsLong()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default long shovingGetAsLong()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static long handlingGetAsLong(LLongSupplier func, HandlingInstructions<Throwable,RuntimeException> handling)
static long tryGetAsLong(LLongSupplier func)
static long tryGetAsLong(LLongSupplier func, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
static long tryGetAsLong(LLongSupplier func, @Nonnull ExWF<RuntimeException> exF)
static long tryGetAsLongThen(LLongSupplier func, @Nonnull LToLongFunction<Throwable> handler)
default long failSafeGetAsLong(@Nonnull LLongSupplier failSafe)
static long failSafeGetAsLong(LLongSupplier func, @Nonnull LLongSupplier failSafe)
static LLongSupplier failSafe(LLongSupplier func, @Nonnull LLongSupplier failSafe)
default long nonNullGetAsLong()
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,
LLongSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
LLongSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
LLongSupplier func)
From-To. Intended to be used with non-capturing lambda.
static LLongSupplier of(long r)
Creates function that always returns the same value.
@Nonnull static LLongSupplier longSup(@Nonnull LLongSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LLongSupplier recursive(@Nonnull LFunction<LLongSupplier,LLongSupplier> selfLambda)
@Nonnull static LLongSupplier longSupThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LLongSupplier longSupThrowing(String message, @Nonnull ExMF<Throwable> exF)
static long call(@Nonnull LLongSupplier lambda)
@Nonnull static LLongSupplier wrap(java.util.function.LongSupplier other)
Wraps JRE instance.
@Nonnull static LLongSupplier safe()
Safe instance. That always returns the same value (as produceLong).
@Nonnull static LSupplier<LLongSupplier> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LLongSupplier safe(@Nullable LLongSupplier other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LLongSupplier> safeSupplier(@Nullable LSupplier<LLongSupplier> 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 LLongFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteSupplier toByteSup(@Nonnull LLongToByteFunction after)
Combines two functions together in a order.
@Nonnull default LSrtSupplier toSrtSup(@Nonnull LLongToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LIntSupplier toIntSup(@Nonnull LLongToIntFunction after)
Combines two functions together in a order.
@Nonnull default LLongSupplier toLongSup(@Nonnull LLongUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LFltSupplier toFltSup(@Nonnull LLongToFltFunction after)
Combines two functions together in a order.
@Nonnull default LDblSupplier toDblSup(@Nonnull LLongToDblFunction after)
Combines two functions together in a order.
@Nonnull default LCharSupplier toCharSup(@Nonnull LLongToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBoolSupplier toBoolSup(@Nonnull LLongPredicate after)
Combines two functions together in a order.
static long produceLong()
Does nothing (LLongSupplier) Supplier
Copyright © 2019. All rights reserved.