@FunctionalInterface public interface LBoolSupplier extends java.util.function.BooleanSupplier, MetaSupplier, MetaInterface.NonThrowing, Codomain<aType.aBool>, Domain0
Non-throwing functional interface (lambda) LBoolSupplier for Java 8.
Type: supplier
Domain (lvl: 0): none
Co-domain: boolean
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolSupplier.LBoolSupplierSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static LBoolSupplier |
boolSup(LBoolSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LBoolSupplier |
boolSupThrowing(ExF<Throwable> exF) |
static LBoolSupplier |
boolSupThrowing(String message,
ExMF<Throwable> exF) |
static boolean |
call(LBoolSupplier lambda) |
static LBoolSupplier |
failSafe(LBoolSupplier func,
LBoolSupplier failSafe) |
default boolean |
failSafeGetAsBool(LBoolSupplier failSafe) |
static boolean |
failSafeGetAsBool(LBoolSupplier func,
LBoolSupplier failSafe) |
static void |
fromTill(int min_i,
int max_i,
LBoolSupplier func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
LBoolSupplier func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default boolean |
getAsBool() |
default boolean |
getAsBool(ExWF<RuntimeException> exF) |
default boolean |
getAsBool(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default boolean |
getAsBoolean()
Deprecated.
Calling this method via LBoolSupplier interface should be discouraged.
|
default boolean |
getAsBoolThen(LPredicate<Throwable> handler) |
boolean |
getAsBoolX()
Implement this, but call getAsBool()
|
default LBoolSupplier |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default boolean |
handlingGetAsBool(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static boolean |
handlingGetAsBool(LBoolSupplier func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default boolean |
nestingGetAsBool()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default boolean |
nonNullGetAsBool()
Just to mirror the method: Ensures the result is not null
|
static LBoolSupplier |
of(boolean r)
Creates function that always returns the same value.
|
static boolean |
produceBoolean()
Does nothing (LBoolSupplier) Supplier
|
static LBoolSupplier |
recursive(LFunction<LBoolSupplier,LBoolSupplier> selfLambda) |
static LBoolSupplier |
safe()
Safe instance.
|
static LBoolSupplier |
safe(LBoolSupplier other)
Safe wrapping.
|
static LSupplier<LBoolSupplier> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBoolSupplier> |
safeSupplier(LSupplier<LBoolSupplier> supplier)
Safe supplier.
|
default boolean |
shovingGetAsBool()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static void |
times(int max_i,
LBoolSupplier func)
From-To.
|
default LBoolSupplier |
toBoolSup(LLogicalOperator after)
Combines two functions together in a order.
|
default LByteSupplier |
toByteSup(LBoolToByteFunction after)
Combines two functions together in a order.
|
default LCharSupplier |
toCharSup(LBoolToCharFunction after)
Combines two functions together in a order.
|
default LDblSupplier |
toDblSup(LBoolToDblFunction after)
Combines two functions together in a order.
|
default LFltSupplier |
toFltSup(LBoolToFltFunction after)
Combines two functions together in a order.
|
default LIntSupplier |
toIntSup(LBoolToIntFunction after)
Combines two functions together in a order.
|
default LLongSupplier |
toLongSup(LBoolToLongFunction after)
Combines two functions together in a order.
|
default LSrtSupplier |
toSrtSup(LBoolToSrtFunction after)
Combines two functions together in a order.
|
default <V> LSupplier<V> |
toSup(LBoolFunction<? extends V> after)
Combines two functions together in a order.
|
static boolean |
tryGetAsBool(LBoolSupplier func) |
static boolean |
tryGetAsBool(LBoolSupplier func,
ExWF<RuntimeException> exF) |
static boolean |
tryGetAsBool(LBoolSupplier func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static boolean |
tryGetAsBoolThen(LBoolSupplier func,
LPredicate<Throwable> handler) |
default LBoolSupplier |
trying(ExWF<RuntimeException> exF) |
default LBoolSupplier |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBoolSupplier |
tryingThen(LPredicate<Throwable> handler) |
default boolean |
tupleGetAsBool(LTuple.Void args) |
static LBoolSupplier |
wrap(java.util.function.BooleanSupplier other)
Wraps JRE instance.
|
isSupplierformatTo, isAction, isConsumer, isFunction, isOperator, isPredicateisThrowingstatic final String DESCRIPTION
@Deprecated default boolean getAsBoolean()
Default implementation for JRE method that calls exception nesting method.
getAsBoolean in interface java.util.function.BooleanSupplierdefault boolean getAsBool()
boolean getAsBoolX()
throws Throwable
Implement this, but call getAsBool()
Throwabledefault boolean tupleGetAsBool(LTuple.Void args)
default boolean handlingGetAsBool(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBoolSupplier handling(HandlingInstructions<Throwable,RuntimeException> handling)
default boolean getAsBool(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LBoolSupplier trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default boolean getAsBool(@Nonnull ExWF<RuntimeException> exF)
default LBoolSupplier trying(@Nonnull ExWF<RuntimeException> exF)
default boolean getAsBoolThen(@Nonnull LPredicate<Throwable> handler)
default LBoolSupplier tryingThen(@Nonnull LPredicate<Throwable> handler)
default boolean nestingGetAsBool()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default boolean shovingGetAsBool()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static boolean handlingGetAsBool(LBoolSupplier func, HandlingInstructions<Throwable,RuntimeException> handling)
static boolean tryGetAsBool(LBoolSupplier func)
static boolean tryGetAsBool(LBoolSupplier func, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
static boolean tryGetAsBool(LBoolSupplier func, @Nonnull ExWF<RuntimeException> exF)
static boolean tryGetAsBoolThen(LBoolSupplier func, @Nonnull LPredicate<Throwable> handler)
default boolean failSafeGetAsBool(@Nonnull LBoolSupplier failSafe)
static boolean failSafeGetAsBool(LBoolSupplier func, @Nonnull LBoolSupplier failSafe)
static LBoolSupplier failSafe(LBoolSupplier func, @Nonnull LBoolSupplier failSafe)
default boolean nonNullGetAsBool()
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,
LBoolSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
LBoolSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
LBoolSupplier func)
From-To. Intended to be used with non-capturing lambda.
static LBoolSupplier of(boolean r)
Creates function that always returns the same value.
@Nonnull static LBoolSupplier boolSup(@Nonnull LBoolSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBoolSupplier recursive(@Nonnull LFunction<LBoolSupplier,LBoolSupplier> selfLambda)
@Nonnull static LBoolSupplier boolSupThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBoolSupplier boolSupThrowing(String message, @Nonnull ExMF<Throwable> exF)
static boolean call(@Nonnull LBoolSupplier lambda)
@Nonnull static LBoolSupplier wrap(java.util.function.BooleanSupplier other)
Wraps JRE instance.
@Nonnull static LBoolSupplier safe()
Safe instance. That always returns the same value (as produceBoolean).
@Nonnull static LSupplier<LBoolSupplier> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBoolSupplier safe(@Nullable LBoolSupplier other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBoolSupplier> safeSupplier(@Nullable LSupplier<LBoolSupplier> 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 LBoolFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteSupplier toByteSup(@Nonnull LBoolToByteFunction after)
Combines two functions together in a order.
@Nonnull default LSrtSupplier toSrtSup(@Nonnull LBoolToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LIntSupplier toIntSup(@Nonnull LBoolToIntFunction after)
Combines two functions together in a order.
@Nonnull default LLongSupplier toLongSup(@Nonnull LBoolToLongFunction after)
Combines two functions together in a order.
@Nonnull default LFltSupplier toFltSup(@Nonnull LBoolToFltFunction after)
Combines two functions together in a order.
@Nonnull default LDblSupplier toDblSup(@Nonnull LBoolToDblFunction after)
Combines two functions together in a order.
@Nonnull default LCharSupplier toCharSup(@Nonnull LBoolToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBoolSupplier toBoolSup(@Nonnull LLogicalOperator after)
Combines two functions together in a order.
static boolean produceBoolean()
Does nothing (LBoolSupplier) Supplier
Copyright © 2019. All rights reserved.