Package com.google.common.base
Class Predicates.ContainsPatternPredicate
java.lang.Object
com.google.common.base.Predicates.ContainsPatternPredicate
- All Implemented Interfaces:
Predicate<CharSequence>,Serializable,Predicate<CharSequence>
- Direct Known Subclasses:
Predicates.ContainsPatternFromStringPredicate
- Enclosing class:
- Predicates
private static class Predicates.ContainsPatternPredicate
extends Object
implements Predicate<CharSequence>, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
pattern
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ContainsPatternPredicate
ContainsPatternPredicate(CommonPattern pattern)
-
-
Method Details
-
apply
Description copied from interface:PredicateReturns 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)).
- Specified by:
applyin interfacePredicate<CharSequence>
-
hashCode
public int hashCode() -
equals
Description copied from interface:PredicateIndicates 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 returntruewheneverobjectis aPredicatethat it considers interchangeable with this one. "Interchangeable" typically means thatthis.apply(t) == that.apply(t)for alltof typeT). Note that afalseresult from this method does not imply that the predicates are known not to be interchangeable.- Specified by:
equalsin interfacePredicate<CharSequence>- Overrides:
equalsin classObject
-
toString
-