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