@FunctionalInterface public interface LBoolToLongFunction extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.aLong>, Domain1<aType.aBool>
Non-throwing functional interface (lambda) LBoolToLongFunction for Java 8.
Type: function
Domain (lvl: 1): boolean a
Co-domain: long
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolToLongFunction.LBoolToLongFunctionSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default long |
applyAsLong(boolean a) |
default long |
applyAsLong(boolean a,
ExWF<RuntimeException> exF) |
default long |
applyAsLong(boolean a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default long |
applyAsLongThen(boolean a,
LToLongFunction<Throwable> handler) |
long |
applyAsLongX(boolean a)
Implement this, but call applyAsLong(boolean a)
|
static LBoolToLongFunction |
boolToLongFunc(LBoolToLongFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToLongFunction<V> |
boolToLongFuncCompose(LPredicate<? super V> before)
Allows to manipulate the domain of the function.
|
static LBoolToLongFunction |
boolToLongFuncThrowing(ExF<Throwable> exF) |
static LBoolToLongFunction |
boolToLongFuncThrowing(String message,
ExMF<Throwable> exF) |
static long |
call(boolean a,
LBoolToLongFunction lambda) |
default LLongSupplier |
capture(boolean a)
Captures arguments but delays the evaluation.
|
default LBoolToLongFunction |
compose(LLogicalOperator before)
Allows to manipulate the domain of the function.
|
static LBoolToLongFunction |
composed(LLogicalOperator before,
LBoolToLongFunction after) |
static <V> LToLongFunction<V> |
composed(LPredicate<? super V> before,
LBoolToLongFunction after) |
static LBoolToLongFunction |
constant(long r)
Creates function that always returns the same value.
|
static LBoolToLongFunction |
failSafe(LBoolToLongFunction func,
LBoolToLongFunction failSafe) |
default long |
failSafeApplyAsLong(boolean a,
LBoolToLongFunction failSafe) |
static long |
failSafeApplyAsLong(boolean a,
LBoolToLongFunction func,
LBoolToLongFunction failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aBool> ia,
C0 source,
LLongConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static void |
fromTill(int min_i,
int max_i,
boolean a,
LBoolToLongFunction func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
boolean a,
LBoolToLongFunction func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBoolToLongFunction |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default long |
handlingApplyAsLong(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static long |
handlingApplyAsLong(boolean a,
LBoolToLongFunction func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aBool> sa,
C0 source,
LLongConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default long |
nestingApplyAsLong(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default long |
nonNullApplyAsLong(boolean a)
Just to mirror the method: Ensures the result is not null
|
static long |
produceLong(boolean a)
Does nothing (LBoolToLongFunction) Function
|
static LBoolToLongFunction |
recursive(LFunction<LBoolToLongFunction,LBoolToLongFunction> selfLambda) |
static LBoolToLongFunction |
safe()
Safe instance.
|
static LBoolToLongFunction |
safe(LBoolToLongFunction other)
Safe wrapping.
|
static LSupplier<LBoolToLongFunction> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBoolToLongFunction> |
safeSupplier(LSupplier<LBoolToLongFunction> supplier)
Safe supplier.
|
default long |
shovingApplyAsLong(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LBoolFunction<V> |
then(LLongFunction<? extends V> after)
Combines two functions together in a order.
|
default LLogicalOperator |
thenToBool(LLongPredicate after)
Combines two functions together in a order.
|
default LBoolToByteFunction |
thenToByte(LLongToByteFunction after)
Combines two functions together in a order.
|
default LBoolToCharFunction |
thenToChar(LLongToCharFunction after)
Combines two functions together in a order.
|
default LBoolToDblFunction |
thenToDbl(LLongToDblFunction after)
Combines two functions together in a order.
|
default LBoolToFltFunction |
thenToFlt(LLongToFltFunction after)
Combines two functions together in a order.
|
default LBoolToIntFunction |
thenToInt(LLongToIntFunction after)
Combines two functions together in a order.
|
default LBoolToLongFunction |
thenToLong(LLongUnaryOperator after)
Combines two functions together in a order.
|
default LBoolToSrtFunction |
thenToSrt(LLongToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
boolean a,
LBoolToLongFunction func)
From-To.
|
static long |
tryApplyAsLong(boolean a,
LBoolToLongFunction func) |
static long |
tryApplyAsLong(boolean a,
LBoolToLongFunction func,
ExWF<RuntimeException> exF) |
static long |
tryApplyAsLong(boolean a,
LBoolToLongFunction func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static long |
tryApplyAsLongThen(boolean a,
LBoolToLongFunction func,
LToLongFunction<Throwable> handler) |
default LBoolToLongFunction |
trying(ExWF<RuntimeException> exF) |
default LBoolToLongFunction |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBoolToLongFunction |
tryingThen(LToLongFunction<Throwable> handler) |
default long |
tupleApplyAsLong(LBoolSingle args) |
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default long applyAsLong(boolean a)
long applyAsLongX(boolean a)
throws Throwable
Implement this, but call applyAsLong(boolean a)
Throwabledefault long tupleApplyAsLong(LBoolSingle args)
default long handlingApplyAsLong(boolean a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBoolToLongFunction handling(HandlingInstructions<Throwable,RuntimeException> handling)
default long applyAsLong(boolean a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LBoolToLongFunction trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default long applyAsLong(boolean a,
@Nonnull
ExWF<RuntimeException> exF)
default LBoolToLongFunction trying(@Nonnull ExWF<RuntimeException> exF)
default long applyAsLongThen(boolean a,
@Nonnull
LToLongFunction<Throwable> handler)
default LBoolToLongFunction tryingThen(@Nonnull LToLongFunction<Throwable> handler)
default long nestingApplyAsLong(boolean a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default long shovingApplyAsLong(boolean a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static long handlingApplyAsLong(boolean a,
LBoolToLongFunction func,
HandlingInstructions<Throwable,RuntimeException> handling)
static long tryApplyAsLong(boolean a,
LBoolToLongFunction func)
static long tryApplyAsLong(boolean a,
LBoolToLongFunction func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static long tryApplyAsLong(boolean a,
LBoolToLongFunction func,
@Nonnull
ExWF<RuntimeException> exF)
static long tryApplyAsLongThen(boolean a,
LBoolToLongFunction func,
@Nonnull
LToLongFunction<Throwable> handler)
default long failSafeApplyAsLong(boolean a,
@Nonnull
LBoolToLongFunction failSafe)
static long failSafeApplyAsLong(boolean a,
LBoolToLongFunction func,
@Nonnull
LBoolToLongFunction failSafe)
static LBoolToLongFunction failSafe(LBoolToLongFunction func, @Nonnull LBoolToLongFunction failSafe)
default long nonNullApplyAsLong(boolean a)
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,
boolean a,
LBoolToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
boolean a,
LBoolToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
boolean a,
LBoolToLongFunction func)
From-To. Intended to be used with non-capturing lambda.
default LLongSupplier capture(boolean a)
Captures arguments but delays the evaluation.
static LBoolToLongFunction constant(long r)
Creates function that always returns the same value.
@Nonnull static LBoolToLongFunction boolToLongFunc(@Nonnull LBoolToLongFunction lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBoolToLongFunction recursive(@Nonnull LFunction<LBoolToLongFunction,LBoolToLongFunction> selfLambda)
@Nonnull static LBoolToLongFunction boolToLongFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBoolToLongFunction boolToLongFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static long call(boolean a,
@Nonnull
LBoolToLongFunction lambda)
@Nonnull static LBoolToLongFunction safe()
Safe instance. That always returns the same value (as produceLong).
@Nonnull static LSupplier<LBoolToLongFunction> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBoolToLongFunction safe(@Nullable LBoolToLongFunction other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBoolToLongFunction> safeSupplier(@Nullable LSupplier<LBoolToLongFunction> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBoolToLongFunction compose(@Nonnull LLogicalOperator before)
Allows to manipulate the domain of the function.
static LBoolToLongFunction composed(@Nonnull LLogicalOperator before, LBoolToLongFunction after)
@Nonnull default <V> LToLongFunction<V> boolToLongFuncCompose(@Nonnull LPredicate<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToLongFunction<V> composed(@Nonnull LPredicate<? super V> before, LBoolToLongFunction after)
@Nonnull default <V> LBoolFunction<V> then(@Nonnull LLongFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LBoolToByteFunction thenToByte(@Nonnull LLongToByteFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToSrtFunction thenToSrt(@Nonnull LLongToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToIntFunction thenToInt(@Nonnull LLongToIntFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToLongFunction thenToLong(@Nonnull LLongUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBoolToFltFunction thenToFlt(@Nonnull LLongToFltFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToDblFunction thenToDbl(@Nonnull LLongToDblFunction after)
Combines two functions together in a order.
@Nonnull default LBoolToCharFunction thenToChar(@Nonnull LLongToCharFunction after)
Combines two functions together in a order.
@Nonnull default LLogicalOperator thenToBool(@Nonnull LLongPredicate after)
Combines two functions together in a order.
static long produceLong(boolean a)
Does nothing (LBoolToLongFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aBool> ia, C0 source, LLongConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C0,I0> void iterate(SequentialRead<C0,I0,aType.aBool> sa, C0 source, LLongConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.