Package com.google.common.base
Class Predicates.SubtypeOfPredicate
java.lang.Object
com.google.common.base.Predicates.SubtypeOfPredicate
- All Implemented Interfaces:
Predicate<Class<?>>
,Serializable
,Predicate<Class<?>>
- Enclosing class:
Predicates
private static class Predicates.SubtypeOfPredicate
extends Object
implements Predicate<Class<?>>, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
clazz
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SubtypeOfPredicate
-
-
Method Details
-
apply
Description copied from interface:Predicate
Returns the result of applying this predicate toinput
(Java 8+ users, see notes in the class documentation above). This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal
(a, b)
implies thatpredicate.apply(a) == predicate.apply(b))
.
-
hashCode
public int hashCode() -
equals
Description copied from interface:Predicate
Indicates whether another object is equal to this predicate.Most implementations will have no reason to override the behavior of
Object.equals(java.lang.Object)
. However, an implementation may also choose to returntrue
wheneverobject
is aPredicate
that it considers interchangeable with this one. "Interchangeable" typically means thatthis.apply(t) == that.apply(t)
for allt
of typeT
). Note that afalse
result from this method does not imply that the predicates are known not to be interchangeable. -
toString
-