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