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