Java util functions predicate
Represents a predicate (boolean-valued function) of one argument. This is a functional interface whose functional method is test(Object) .
Method Summary
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object) .
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
Method Detail
test
and
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another. When evaluating the composed predicate, if this predicate is false , then the other predicate is not evaluated. Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
negate
or
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate is true , then the other predicate is not evaluated. Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
isEqual
Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object) .
not
Returns a predicate that is the negation of the supplied predicate. This is accomplished by returning result of the calling target.negate() .
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
Java util functions predicate
Represents a predicate (boolean-valued function) of one argument. This is a functional interface whose functional method is test(Object) .
Method Summary
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object) .
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
Method Detail
test
and
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another. When evaluating the composed predicate, if this predicate is false , then the other predicate is not evaluated. Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
negate
or
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate is true , then the other predicate is not evaluated. Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
isEqual
Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object) .
Interface Predicate
Type Parameters: T — the type of the input to the predicate Functional Interface: This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This is a functional interface whose functional method is test(Object) .
Method Summary
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object) .
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
Method Details
test
and
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another. When evaluating the composed predicate, if this predicate is false , then the other predicate is not evaluated. Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
negate
or
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate is true , then the other predicate is not evaluated. Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
isEqual
Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object) .
not
Returns a predicate that is the negation of the supplied predicate. This is accomplished by returning result of the calling target.negate() .
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
Interface Predicate
Type Parameters: T — the type of the input to the predicate Functional Interface: This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This is a functional interface whose functional method is test(Object) .
Method Summary
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object) .
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
Method Details
test
and
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another. When evaluating the composed predicate, if this predicate is false , then the other predicate is not evaluated. Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
negate
or
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate is true , then the other predicate is not evaluated. Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
isEqual
Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object) .
not
Returns a predicate that is the negation of the supplied predicate. This is accomplished by returning result of the calling target.negate() .
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.