@GwtCompatible public interface Predicate<T>
Predicates class provides common predicates and related utilities.
See the Guava User Guide article on the use of
boolean apply(@Nullable T input)
input. This method is generally expected, but not absolutely required, to have the following properties:
(a, b)implies that
predicate.apply(a) == predicate.apply(b)).
inputis null and this predicate does not accept null arguments
boolean equals(@Nullable Object object)
Most implementations will have no reason to override the behavior of
However, an implementation may also choose to return
object is a
Predicate that it considers interchangeable with this one. "Interchangeable"
typically means that
this.apply(t) == that.apply(t) for all
t of type
T). Note that a
false result from this method does not imply that the
predicates are known not to be interchangeable.
Copyright © 2010-2013. All Rights Reserved.