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