P - the type of this predicate@InheritOnly public interface AbstractLongPredicate1<P extends AbstractLongPredicate1<P>> extends AbstractPredicateN<P>, net.ashwork.functionality.partial.InputChainableInput<java.lang.Long>, net.ashwork.functionality.partial.Variant<java.util.function.LongPredicate>, net.ashwork.functionality.partial.FunctionVariant<java.lang.Boolean,net.ashwork.functionality.primitive.combined.LongToBooleanFunction1>, net.ashwork.functionality.partial.UnboxedInput<AbstractPredicate1<java.lang.Long,?>>
long-valued argument and produces a boolean-valued result.
This is the one-arity specialization for AbstractPredicateN.
This is the predicate specialization for LongToBooleanFunction1.
This is the long-consuming primitive specialization of AbstractPredicate1.AbstractPredicateN,
LongToBooleanFunction1,
AbstractPredicate1| Modifier and Type | Method and Description |
|---|---|
AbstractLongPredicate1<P> |
and(P other)
Intersects this object with another object to produce a combined result.
|
default <V> net.ashwork.functionality.primitive.longs.LongFunction1<V> |
andThen(net.ashwork.functionality.Function1<? super java.lang.Boolean,? extends V> after) |
default <V> net.ashwork.functionality.primitive.longs.LongFunction1<V> |
andThenUnchecked(net.ashwork.functionality.Function1<? super java.lang.Boolean,? extends V> after) |
default int |
arity() |
AbstractPredicate1<java.lang.Long,?> |
boxInput() |
default <V> AbstractPredicate1<V,?> |
compose(net.ashwork.functionality.Function1<? super V,? extends java.lang.Long> before) |
<V> AbstractPredicate1<V,?> |
composeUnchecked(net.ashwork.functionality.Function1<? super V,? extends java.lang.Long> before) |
default AbstractLongPredicate1<P> |
nand(P other)
Intersects this object with another object to produce the complement of a combined result.
|
default AbstractLongPredicate1<P> |
nor(P other)
Unions this object with another object to produce the complement of a combined result.
|
AbstractLongPredicate1<P> |
not()
Gets the complement of this object.
|
AbstractLongPredicate1<P> |
or(P other)
Unions this object with another object to produce a combined result.
|
default AbstractLongPredicate1<P> |
orNot(P other)
Subtracts the other object from this object to produce the complement of a combined result.
|
default AbstractLongPredicate1<P> |
sub(P other)
Subtracts the other object from this object to produce a combined result.
|
boolean |
test(long value)
Evaluates this predicate on the given argument.
|
default boolean |
testAllUnchecked(java.lang.Object... args)
Evaluates this predicate on the given arguments.
|
default net.ashwork.functionality.primitive.combined.LongToBooleanFunction1 |
toFunctionVariant() |
default java.util.function.LongPredicate |
toVariant() |
default AbstractLongPredicate1<P> |
xnor(P other)
Disjunctively unions this object with another object to produce the complement of a combined result.
|
default AbstractLongPredicate1<P> |
xor(P other)
Disjunctively unions this object with another object to produce a combined result.
|
applyAllAsBooleanUncheckedboolean test(long value)
value - the input argumenttrue if the input arguments match the predicate, otherwise
falsedefault boolean testAllUnchecked(java.lang.Object... args)
AbstractPredicateNtestAllUnchecked in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>args - the input argumentstrue if the input arguments match the predicate, otherwise
falsedefault int arity()
arity in interface net.ashwork.functionality.partial.Arityarity in interface net.ashwork.functionality.FunctionN<java.lang.Boolean>default net.ashwork.functionality.primitive.combined.LongToBooleanFunction1 toFunctionVariant()
toFunctionVariant in interface net.ashwork.functionality.partial.FunctionVariant<java.lang.Boolean,net.ashwork.functionality.primitive.combined.LongToBooleanFunction1>LongToBooleanFunction1default java.util.function.LongPredicate toVariant()
toVariant in interface net.ashwork.functionality.partial.Variant<java.util.function.LongPredicate>LongPredicateAbstractPredicate1<java.lang.Long,?> boxInput()
boxInput in interface net.ashwork.functionality.partial.UnboxedInput<AbstractPredicate1<java.lang.Long,?>>AbstractPredicate1default <V> AbstractPredicate1<V,?> compose(net.ashwork.functionality.Function1<? super V,? extends java.lang.Long> before)
compose in interface net.ashwork.functionality.partial.InputChainable<java.lang.Long>compose in interface net.ashwork.functionality.partial.InputChainableInput<java.lang.Long>AbstractPredicate1<V> AbstractPredicate1<V,?> composeUnchecked(net.ashwork.functionality.Function1<? super V,? extends java.lang.Long> before)
composeUnchecked in interface net.ashwork.functionality.partial.InputChainable<java.lang.Long>composeUnchecked in interface net.ashwork.functionality.partial.InputChainableInput<java.lang.Long>AbstractPredicate1default <V> net.ashwork.functionality.primitive.longs.LongFunction1<V> andThen(net.ashwork.functionality.Function1<? super java.lang.Boolean,? extends V> after)
andThen in interface net.ashwork.functionality.FunctionN<java.lang.Boolean>andThen in interface net.ashwork.functionality.partial.ResultChainable<java.lang.Boolean>andThen in interface net.ashwork.functionality.partial.ResultChainableResult<java.lang.Boolean>LongFunction1default <V> net.ashwork.functionality.primitive.longs.LongFunction1<V> andThenUnchecked(net.ashwork.functionality.Function1<? super java.lang.Boolean,? extends V> after)
andThenUnchecked in interface net.ashwork.functionality.FunctionN<java.lang.Boolean>andThenUnchecked in interface net.ashwork.functionality.partial.ResultChainable<java.lang.Boolean>andThenUnchecked in interface net.ashwork.functionality.partial.ResultChainableResult<java.lang.Boolean>LongFunction1AbstractLongPredicate1<P> not()
Not~A or a logical NOT.not in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>not in interface LogicalOperator<P extends AbstractLongPredicate1<P>>not in interface Nand<P extends AbstractLongPredicate1<P>>not in interface Nor<P extends AbstractLongPredicate1<P>>not in interface Notnot in interface OrNot<P extends AbstractLongPredicate1<P>>not in interface Sub<P extends AbstractLongPredicate1<P>>not in interface Xnor<P extends AbstractLongPredicate1<P>>not in interface Xor<P extends AbstractLongPredicate1<P>>AbstractLongPredicate1<P> and(P other)
AndA & B or a logical AND.and in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>and in interface And<P extends AbstractLongPredicate1<P>>and in interface LogicalOperator<P extends AbstractLongPredicate1<P>>and in interface Nand<P extends AbstractLongPredicate1<P>>and in interface Sub<P extends AbstractLongPredicate1<P>>and in interface Xnor<P extends AbstractLongPredicate1<P>>and in interface Xor<P extends AbstractLongPredicate1<P>>other - the intersected objectother objectAbstractLongPredicate1<P> or(P other)
OrA | B or a logical OR.or in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>or in interface LogicalOperator<P extends AbstractLongPredicate1<P>>or in interface Nor<P extends AbstractLongPredicate1<P>>or in interface Or<P extends AbstractLongPredicate1<P>>or in interface OrNot<P extends AbstractLongPredicate1<P>>or in interface Xnor<P extends AbstractLongPredicate1<P>>or in interface Xor<P extends AbstractLongPredicate1<P>>other - the unioned objectother objectdefault AbstractLongPredicate1<P> xor(P other)
XorA ^ B or a logical XOR.xor in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>xor in interface LogicalOperator<P extends AbstractLongPredicate1<P>>xor in interface Xnor<P extends AbstractLongPredicate1<P>>xor in interface Xor<P extends AbstractLongPredicate1<P>>other - the disjunctively unioned objectother objectdefault AbstractLongPredicate1<P> sub(P other)
SubA - B or the relative complement.sub in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>sub in interface LogicalOperator<P extends AbstractLongPredicate1<P>>sub in interface Sub<P extends AbstractLongPredicate1<P>>sub in interface Xnor<P extends AbstractLongPredicate1<P>>sub in interface Xor<P extends AbstractLongPredicate1<P>>other - the subtrahend objectother object being
subtracted from this objectdefault AbstractLongPredicate1<P> nand(P other)
Nand~(A & B) or a logical NAND.nand in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>nand in interface LogicalOperator<P extends AbstractLongPredicate1<P>>nand in interface Nand<P extends AbstractLongPredicate1<P>>other - the intersected objectother objectdefault AbstractLongPredicate1<P> nor(P other)
Nor~(A | B) or a logical NOR.nor in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>nor in interface LogicalOperator<P extends AbstractLongPredicate1<P>>nor in interface Nor<P extends AbstractLongPredicate1<P>>other - the unioned objectother objectdefault AbstractLongPredicate1<P> xnor(P other)
Xnor~(A ^ B) or a logical XNOR.xnor in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>xnor in interface LogicalOperator<P extends AbstractLongPredicate1<P>>xnor in interface Xnor<P extends AbstractLongPredicate1<P>>other - the disjunctively unioned objectother objectdefault AbstractLongPredicate1<P> orNot(P other)
OrNot~(A - B) or the complement of the relative complement.orNot in interface AbstractPredicateN<P extends AbstractLongPredicate1<P>>orNot in interface LogicalOperator<P extends AbstractLongPredicate1<P>>orNot in interface OrNot<P extends AbstractLongPredicate1<P>>other - the subtrahend objectother
object being subtracted from this object