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