Serializable
AddressStringTerm
, BodyTerm
, GmailRawSearchTerm
, HeaderTerm
, MessageIDTerm
, SubjectTerm
public abstract class StringTerm extends SearchTerm
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
ignoreCase |
Ignore case when comparing?
|
protected String |
pattern |
The pattern.
|
Modifier | Constructor | Description |
---|---|---|
protected |
StringTerm(String pattern) |
Construct a StringTerm with the given pattern.
|
protected |
StringTerm(String pattern,
boolean ignoreCase) |
Construct a StringTerm with the given pattern and ignoreCase flag.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
Equality comparison.
|
boolean |
getIgnoreCase() |
Return true if we should ignore case when matching.
|
String |
getPattern() |
Return the string to match with.
|
int |
hashCode() |
Compute a hashCode for this object.
|
protected boolean |
match(String s) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
match
protected String pattern
protected boolean ignoreCase
protected StringTerm(String pattern)
pattern
- the patternprotected StringTerm(String pattern, boolean ignoreCase)
pattern
- the patternignoreCase
- should we ignore case?Copyright © 2018 Oracle. All rights reserved.