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