@FunctionalInterface public interface LBoolIntPredicate extends MetaPredicate, MetaInterface.NonThrowing, Codomain<aType.aBool>, Domain2<aType.aBool,aType.aInt>
Non-throwing functional interface (lambda) LBoolIntPredicate for Java 8.
Type: predicate
Domain (lvl: 2): boolean a1,int a2
Co-domain: boolean
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolIntPredicate.LBoolIntPredicateSingle |
static interface |
LBoolIntPredicate.LIntBoolPred
Permutation of LBoolIntPredicate for method references.
|
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
alwaysFalse(boolean a1,
int a2)
Returns FALSE.
|
static boolean |
alwaysFalse(int a2,
boolean a1)
Returns FALSE.
|
static boolean |
alwaysTrue(boolean a1,
int a2)
Returns TRUE.
|
static boolean |
alwaysTrue(int a2,
boolean a1)
Returns TRUE.
|
default LBoolIntPredicate |
and(LBoolIntPredicate other)
Returns a predicate that represents the logical AND of evaluation of this predicate and the argument one.
|
static LBoolIntPredicate |
boolIntPred(LBoolIntPredicate lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LBiPredicate<V1,V2> |
boolIntPredCompose(LPredicate<? super V1> before1,
LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static LBoolIntPredicate |
boolIntPredThrowing(ExF<Throwable> exF) |
static LBoolIntPredicate |
boolIntPredThrowing(String message,
ExMF<Throwable> exF) |
default LBoolIntPredicate |
boolToBoolIntPred(LLogicalOperator after)
Combines two functions together in a order.
|
static boolean |
call(boolean a1,
int a2,
LBoolIntPredicate lambda) |
default LBoolSupplier |
capture(boolean a1,
int a2)
Captures arguments but delays the evaluation.
|
default LBoolIntPredicate |
compose(LLogicalOperator before1,
LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static LBoolIntPredicate |
composed(LLogicalOperator before1,
LIntUnaryOperator before2,
LBoolIntPredicate after) |
static <V1,V2> LBiPredicate<V1,V2> |
composed(LPredicate<? super V1> before1,
LToIntFunction<? super V2> before2,
LBoolIntPredicate after) |
static LBoolIntPredicate |
constant(boolean r)
Creates function that always returns the same value.
|
default boolean |
doApplyAsBoolean(boolean a1,
int a2)
For convenience, where “test()” makes things more confusing than “applyAsBoolean()”.
|
default boolean |
doIf(boolean a1,
int a2,
LAction action) |
default boolean |
doIf(boolean a1,
int a2,
LBoolIntConsumer consumer) |
static boolean |
doIf(boolean a1,
int a2,
LBoolIntPredicate predicate,
LAction action) |
static boolean |
doIf(boolean a1,
int a2,
LBoolIntPredicate predicate,
LBoolIntConsumer consumer) |
default <V> boolean |
doIf(V a1,
int a2,
boolean a3,
LTieBoolConsumer<? super V> consumer) |
default <V> int |
doIf(V a1,
int a2,
boolean a3,
LTieBoolFunction<? super V> consumer) |
static LBoolIntPredicate |
failSafe(LBoolIntPredicate func,
LBoolIntPredicate failSafe) |
default boolean |
failSafeTest(boolean a1,
int a2,
LBoolIntPredicate failSafe) |
static boolean |
failSafeTest(boolean a1,
int a2,
LBoolIntPredicate func,
LBoolIntPredicate failSafe) |
default <C1,C2> void |
filterForEach(IndexedRead<C1,aType.aBool> ia1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LBoolIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,C2,I2> void |
filterIterate(IndexedRead<C1,aType.aBool> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LBoolIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,I1,C2> void |
filterIterate(SequentialRead<C1,I1,aType.aBool> sa1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LBoolIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,I1,C2,I2> |
filterIterate(SequentialRead<C1,I1,aType.aBool> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LBoolIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
static void |
fromTill(int min_a2,
int max_a2,
boolean a1,
LBoolIntPredicate func)
From-To.
|
static void |
fromTo(int min_a2,
int max_a2,
boolean a1,
LBoolIntPredicate func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBoolIntPredicate |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default boolean |
handlingTest(boolean a1,
int a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static boolean |
handlingTest(boolean a1,
int a2,
LBoolIntPredicate func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static LBoolIntPredicate.LIntBoolPred |
intBoolPred(LBoolIntPredicate.LIntBoolPred lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LBoolIntPredicate |
isEqual(boolean v1,
int v2)
Creates predicate that evaluates if an object is equal with the argument one.
|
default LIntPredicate |
lShrink(LIntPredicate left) |
default LIntPredicate |
lShrinkc(boolean a1) |
static LIntPredicate |
lShrinked(LIntPredicate left,
LBoolIntPredicate func) |
static LIntPredicate |
lShrinkedc(boolean a1,
LBoolIntPredicate func) |
default LBoolIntPredicate |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
default boolean |
nestingTest(boolean a1,
int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default boolean |
nonNullTest(boolean a1,
int a2)
Just to mirror the method: Ensures the result is not null
|
default LBoolIntPredicate |
or(LBoolIntPredicate other)
Returns a predicate that represents the logical OR of evaluation of this predicate and the argument one.
|
static LBoolIntPredicate |
recursive(LFunction<LBoolIntPredicate,LBoolIntPredicate> selfLambda) |
default LLogicalOperator |
rShrink(LBoolToIntFunction right) |
default LLogicalOperator |
rShrinkc(int a2) |
static LLogicalOperator |
rShrinked(LBoolToIntFunction right,
LBoolIntPredicate func) |
static LLogicalOperator |
rShrinkedc(int a2,
LBoolIntPredicate func) |
static LBoolIntPredicate |
safe()
Safe instance.
|
static LBoolIntPredicate |
safe(LBoolIntPredicate other)
Safe wrapping.
|
static LSupplier<LBoolIntPredicate> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LBoolIntPredicate> |
safeSupplier(LSupplier<LBoolIntPredicate> supplier)
Safe supplier.
|
default boolean |
shovingTest(boolean a1,
int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default boolean |
test(boolean a1,
int a2) |
default boolean |
test(boolean a1,
int a2,
ExWF<RuntimeException> exF) |
default boolean |
test(boolean a1,
int a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static LBoolIntPredicate |
test1st(LLogicalOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static LBoolIntPredicate |
test2nd(LIntPredicate func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default boolean |
testThen(boolean a1,
int a2,
LPredicate<Throwable> handler) |
boolean |
testX(boolean a1,
int a2)
Implement this, but call test(boolean a1,int a2)
|
static void |
throwIf(boolean a1,
int a2,
LBoolIntPredicate pred,
ExMF<RuntimeException> factory,
String newMessage,
Object... messageParams) |
static void |
throwIfNot(boolean a1,
int a2,
LBoolIntPredicate pred,
ExMF<RuntimeException> factory,
String newMessage,
Object... messageParams) |
static void |
times(int max_a2,
boolean a1,
LBoolIntPredicate func)
From-To.
|
default LBoolIntPredicate |
trying(ExWF<RuntimeException> exF) |
default LBoolIntPredicate |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBoolIntPredicate |
tryingThen(LPredicate<Throwable> handler) |
static boolean |
tryTest(boolean a1,
int a2,
LBoolIntPredicate func) |
static boolean |
tryTest(boolean a1,
int a2,
LBoolIntPredicate func,
ExWF<RuntimeException> exF) |
static boolean |
tryTest(boolean a1,
int a2,
LBoolIntPredicate func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static boolean |
tryTestThen(boolean a1,
int a2,
LBoolIntPredicate func,
LPredicate<Throwable> handler) |
default boolean |
tupleTest(LBoolIntPair args) |
static LBoolIntPredicate |
uncurry(LBoolFunction<LIntPredicate> func) |
default LBoolIntPredicate |
xor(LBoolIntPredicate other)
Returns a predicate that represents the logical XOR of evaluation of this predicate and the argument one.
|
isPredicateisFunctionformatTo, isAction, isConsumer, isOperator, isSupplierisThrowingisThrowingstatic final String DESCRIPTION
default boolean test(boolean a1,
int a2)
boolean testX(boolean a1,
int a2)
throws Throwable
Implement this, but call test(boolean a1,int a2)
Throwabledefault boolean tupleTest(LBoolIntPair args)
default boolean handlingTest(boolean a1,
int a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBoolIntPredicate handling(HandlingInstructions<Throwable,RuntimeException> handling)
default boolean test(boolean a1,
int a2,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LBoolIntPredicate trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default boolean test(boolean a1,
int a2,
@Nonnull
ExWF<RuntimeException> exF)
default LBoolIntPredicate trying(@Nonnull ExWF<RuntimeException> exF)
default boolean testThen(boolean a1,
int a2,
@Nonnull
LPredicate<Throwable> handler)
default LBoolIntPredicate tryingThen(@Nonnull LPredicate<Throwable> handler)
default boolean nestingTest(boolean a1,
int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default boolean shovingTest(boolean a1,
int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static boolean handlingTest(boolean a1,
int a2,
LBoolIntPredicate func,
HandlingInstructions<Throwable,RuntimeException> handling)
static boolean tryTest(boolean a1,
int a2,
LBoolIntPredicate func)
static boolean tryTest(boolean a1,
int a2,
LBoolIntPredicate func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static boolean tryTest(boolean a1,
int a2,
LBoolIntPredicate func,
@Nonnull
ExWF<RuntimeException> exF)
static boolean tryTestThen(boolean a1,
int a2,
LBoolIntPredicate func,
@Nonnull
LPredicate<Throwable> handler)
default boolean failSafeTest(boolean a1,
int a2,
@Nonnull
LBoolIntPredicate failSafe)
static boolean failSafeTest(boolean a1,
int a2,
LBoolIntPredicate func,
@Nonnull
LBoolIntPredicate failSafe)
static LBoolIntPredicate failSafe(LBoolIntPredicate func, @Nonnull LBoolIntPredicate failSafe)
default boolean doIf(boolean a1,
int a2,
LAction action)
static boolean doIf(boolean a1,
int a2,
@Nonnull
LBoolIntPredicate predicate,
@Nonnull
LAction action)
static boolean doIf(boolean a1,
int a2,
@Nonnull
LBoolIntPredicate predicate,
@Nonnull
LBoolIntConsumer consumer)
default boolean doIf(boolean a1,
int a2,
@Nonnull
LBoolIntConsumer consumer)
static void throwIf(boolean a1,
int a2,
LBoolIntPredicate pred,
ExMF<RuntimeException> factory,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static void throwIfNot(boolean a1,
int a2,
LBoolIntPredicate pred,
ExMF<RuntimeException> factory,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default boolean nonNullTest(boolean a1,
int a2)
Just to mirror the method: Ensures the result is not null
default boolean doApplyAsBoolean(boolean a1,
int a2)
For convenience, where “test()” makes things more confusing than “applyAsBoolean()”.
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacedefault <V> boolean doIf(V a1,
int a2,
boolean a3,
LTieBoolConsumer<? super V> consumer)
default <V> int doIf(V a1,
int a2,
boolean a3,
LTieBoolFunction<? super V> consumer)
static void fromTo(int min_a2,
int max_a2,
boolean a1,
LBoolIntPredicate func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_a2,
int max_a2,
boolean a1,
LBoolIntPredicate func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_a2,
boolean a1,
LBoolIntPredicate func)
From-To. Intended to be used with non-capturing lambda.
default LIntPredicate lShrink(LIntPredicate left)
default LIntPredicate lShrinkc(boolean a1)
static LIntPredicate lShrinked(LIntPredicate left, LBoolIntPredicate func)
static LIntPredicate lShrinkedc(boolean a1, LBoolIntPredicate func)
default LLogicalOperator rShrink(LBoolToIntFunction right)
default LLogicalOperator rShrinkc(int a2)
static LLogicalOperator rShrinked(LBoolToIntFunction right, LBoolIntPredicate func)
static LLogicalOperator rShrinkedc(int a2, LBoolIntPredicate func)
static LBoolIntPredicate uncurry(LBoolFunction<LIntPredicate> func)
default LBoolSupplier capture(boolean a1, int a2)
Captures arguments but delays the evaluation.
static LBoolIntPredicate constant(boolean r)
Creates function that always returns the same value.
@Nonnull static LBoolIntPredicate test1st(@Nonnull LLogicalOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static LBoolIntPredicate test2nd(@Nonnull LIntPredicate func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static LBoolIntPredicate boolIntPred(@Nonnull LBoolIntPredicate lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LBoolIntPredicate recursive(@Nonnull LFunction<LBoolIntPredicate,LBoolIntPredicate> selfLambda)
@Nonnull static LBoolIntPredicate boolIntPredThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LBoolIntPredicate boolIntPredThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static LBoolIntPredicate.LIntBoolPred intBoolPred(@Nonnull LBoolIntPredicate.LIntBoolPred lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static boolean call(boolean a1,
int a2,
@Nonnull
LBoolIntPredicate lambda)
@Nonnull static LBoolIntPredicate safe()
Safe instance. That always returns the same value (as alwaysFalse).
@Nonnull static LSupplier<LBoolIntPredicate> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LBoolIntPredicate safe(@Nullable LBoolIntPredicate other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LBoolIntPredicate> safeSupplier(@Nullable LSupplier<LBoolIntPredicate> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBoolIntPredicate negate()
Returns a predicate that represents the logical negation of this predicate.
java.util.function.Predicate#negate}@Nonnull default LBoolIntPredicate and(@Nonnull LBoolIntPredicate other)
Returns a predicate that represents the logical AND of evaluation of this predicate and the argument one.
java.util.function.Predicate#and()}@Nonnull default LBoolIntPredicate or(@Nonnull LBoolIntPredicate other)
Returns a predicate that represents the logical OR of evaluation of this predicate and the argument one.
java.util.function.Predicate#or}@Nonnull default LBoolIntPredicate xor(@Nonnull LBoolIntPredicate other)
Returns a predicate that represents the logical XOR of evaluation of this predicate and the argument one.
java.util.function.Predicate#or}@Nonnull static LBoolIntPredicate isEqual(boolean v1, int v2)
Creates predicate that evaluates if an object is equal with the argument one.
java.util.function.Predicate#isEqual()@Nonnull default LBoolIntPredicate compose(@Nonnull LLogicalOperator before1, @Nonnull LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
static LBoolIntPredicate composed(@Nonnull LLogicalOperator before1, @Nonnull LIntUnaryOperator before2, LBoolIntPredicate after)
@Nonnull default <V1,V2> LBiPredicate<V1,V2> boolIntPredCompose(@Nonnull LPredicate<? super V1> before1, @Nonnull LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2> LBiPredicate<V1,V2> composed(@Nonnull LPredicate<? super V1> before1, @Nonnull LToIntFunction<? super V2> before2, LBoolIntPredicate after)
@Nonnull default LBoolIntPredicate boolToBoolIntPred(@Nonnull LLogicalOperator after)
Combines two functions together in a order.
static boolean alwaysTrue(boolean a1,
int a2)
Returns TRUE.
static boolean alwaysFalse(boolean a1,
int a2)
Returns FALSE.
static boolean alwaysTrue(int a2,
boolean a1)
Returns TRUE.
static boolean alwaysFalse(int a2,
boolean a1)
Returns FALSE.
default <C1,C2> void filterForEach(IndexedRead<C1,aType.aBool> ia1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LBoolIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2> void filterIterate(SequentialRead<C1,I1,aType.aBool> sa1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LBoolIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,C2,I2> void filterIterate(IndexedRead<C1,aType.aBool> ia1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LBoolIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,I2> void filterIterate(SequentialRead<C1,I1,aType.aBool> sa1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LBoolIntConsumer consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.