T1 - the type of the first argument to the predicateT2 - the type of the second argument to the predicate@FunctionalInterface public interface Predicate2<T1,T2> extends AbstractPredicate2<T1,T2,Predicate2<T1,T2>>
boolean-valued result.
This is the one-arity specialization for PredicateN.
This is the predicate specialization for ToBooleanFunction2.
This is a functional interface whose functional method is AbstractPredicate2.test(Object, Object).
PredicateN,
ToBooleanFunction2| Modifier and Type | Method and Description |
|---|---|
default Predicate2<T1,T2> |
and(Predicate2<T1,T2> other)
Intersects this object with another object to produce a combined result.
|
static <T1,T2> Predicate2<T1,T2> |
fromFunctionVariant(net.ashwork.functionality.primitive.booleans.ToBooleanFunction2<T1,T2> function)
Creates an instance of this object from its
ToBooleanFunction2 function variant. |
static <T1,T2> Predicate2<T1,T2> |
fromVariant(java.util.function.BiPredicate<T1,T2> predicate)
Creates an instance of this object from its
BiPredicate variant. |
default Predicate2<T1,T2> |
nand(Predicate2<T1,T2> other)
Intersects this object with another object to produce the complement of a combined result.
|
default Predicate2<T1,T2> |
nor(Predicate2<T1,T2> other)
Unions this object with another object to produce the complement of a combined result.
|
default Predicate2<T1,T2> |
not()
Gets the complement of this object.
|
default Predicate2<T1,T2> |
or(Predicate2<T1,T2> other)
Unions this object with another object to produce a combined result.
|
default Predicate2<T1,T2> |
orNot(Predicate2<T1,T2> other)
Subtracts the other object from this object to produce the complement of a combined result.
|
default Predicate2<T1,T2> |
sub(Predicate2<T1,T2> other)
Subtracts the other object from this object to produce a combined result.
|
default Predicate2<T1,T2> |
xnor(Predicate2<T1,T2> other)
Disjunctively unions this object with another object to produce the complement of a combined result.
|
default Predicate2<T1,T2> |
xor(Predicate2<T1,T2> other)
Disjunctively unions this object with another object to produce a combined result.
|
andThen, andThenUnchecked, arity, test, testAllUnchecked, toFunctionVariant, toVariantapplyAllAsBooleanUncheckedstatic <T1,T2> Predicate2<T1,T2> fromFunctionVariant(net.ashwork.functionality.primitive.booleans.ToBooleanFunction2<T1,T2> function)
ToBooleanFunction2 function variant.T1 - the type of the first argument to the predicateT2 - the type of the second argument to the predicatefunction - the function variant of this objectToBooleanFunction2static <T1,T2> Predicate2<T1,T2> fromVariant(java.util.function.BiPredicate<T1,T2> predicate)
BiPredicate variant.T1 - the type of the first argument to the predicateT2 - the type of the second argument to the predicatepredicate - the variant of this objectBiPredicatedefault Predicate2<T1,T2> not()
Not~A or a logical NOT.not in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>not in interface AbstractPredicateN<Predicate2<T1,T2>>not in interface LogicalOperator<Predicate2<T1,T2>>not in interface Nand<Predicate2<T1,T2>>not in interface Nor<Predicate2<T1,T2>>not in interface Notnot in interface OrNot<Predicate2<T1,T2>>not in interface Sub<Predicate2<T1,T2>>not in interface Xnor<Predicate2<T1,T2>>not in interface Xor<Predicate2<T1,T2>>default Predicate2<T1,T2> and(Predicate2<T1,T2> other)
AndA & B or a logical AND.and in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>and in interface AbstractPredicateN<Predicate2<T1,T2>>and in interface And<Predicate2<T1,T2>>and in interface LogicalOperator<Predicate2<T1,T2>>and in interface Nand<Predicate2<T1,T2>>and in interface Sub<Predicate2<T1,T2>>and in interface Xnor<Predicate2<T1,T2>>and in interface Xor<Predicate2<T1,T2>>other - the intersected objectother objectdefault Predicate2<T1,T2> or(Predicate2<T1,T2> other)
OrA | B or a logical OR.or in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>or in interface AbstractPredicateN<Predicate2<T1,T2>>or in interface LogicalOperator<Predicate2<T1,T2>>or in interface Nor<Predicate2<T1,T2>>or in interface Or<Predicate2<T1,T2>>or in interface OrNot<Predicate2<T1,T2>>or in interface Xnor<Predicate2<T1,T2>>or in interface Xor<Predicate2<T1,T2>>other - the unioned objectother objectdefault Predicate2<T1,T2> xor(Predicate2<T1,T2> other)
XorA ^ B or a logical XOR.xor in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>xor in interface AbstractPredicateN<Predicate2<T1,T2>>xor in interface LogicalOperator<Predicate2<T1,T2>>xor in interface Xnor<Predicate2<T1,T2>>xor in interface Xor<Predicate2<T1,T2>>other - the disjunctively unioned objectother objectdefault Predicate2<T1,T2> sub(Predicate2<T1,T2> other)
SubA - B or the relative complement.sub in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>sub in interface AbstractPredicateN<Predicate2<T1,T2>>sub in interface LogicalOperator<Predicate2<T1,T2>>sub in interface Sub<Predicate2<T1,T2>>sub in interface Xnor<Predicate2<T1,T2>>sub in interface Xor<Predicate2<T1,T2>>other - the subtrahend objectother object being
subtracted from this objectdefault Predicate2<T1,T2> nand(Predicate2<T1,T2> other)
Nand~(A & B) or a logical NAND.nand in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>nand in interface AbstractPredicateN<Predicate2<T1,T2>>nand in interface LogicalOperator<Predicate2<T1,T2>>nand in interface Nand<Predicate2<T1,T2>>other - the intersected objectother objectdefault Predicate2<T1,T2> nor(Predicate2<T1,T2> other)
Nor~(A | B) or a logical NOR.nor in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>nor in interface AbstractPredicateN<Predicate2<T1,T2>>nor in interface LogicalOperator<Predicate2<T1,T2>>nor in interface Nor<Predicate2<T1,T2>>other - the unioned objectother objectdefault Predicate2<T1,T2> xnor(Predicate2<T1,T2> other)
Xnor~(A ^ B) or a logical XNOR.xnor in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>xnor in interface AbstractPredicateN<Predicate2<T1,T2>>xnor in interface LogicalOperator<Predicate2<T1,T2>>xnor in interface Xnor<Predicate2<T1,T2>>other - the disjunctively unioned objectother objectdefault Predicate2<T1,T2> orNot(Predicate2<T1,T2> other)
OrNot~(A - B) or the complement of the relative complement.orNot in interface AbstractPredicate2<T1,T2,Predicate2<T1,T2>>orNot in interface AbstractPredicateN<Predicate2<T1,T2>>orNot in interface LogicalOperator<Predicate2<T1,T2>>orNot in interface OrNot<Predicate2<T1,T2>>other - the subtrahend objectother
object being subtracted from this object