javax.mail.search
public abstract class StringTerm extends SearchTerm
Field Summary | |
---|---|
protected boolean | ignoreCase
If true, case should be ignored during matching. |
protected String | pattern
The pattern associated with this term. |
Constructor Summary | |
---|---|
protected | StringTerm(String pattern)
Constructor specifying a pattern.
|
protected | StringTerm(String pattern, boolean ignoreCase)
Constructor specifying pattern and case sensitivity. |
Method Summary | |
---|---|
boolean | equals(Object other) |
boolean | getIgnoreCase()
Indicate if case should be ignored when matching. |
String | getPattern()
Return the pattern associated with this term. |
int | hashCode() |
protected boolean | match(String match)
Determine if the pattern associated with this term is a substring of the
supplied String. |
Parameters: pattern the pattern for this term
Parameters: pattern the pattern for this term ignoreCase if true, case should be ignored during matching
Returns: if true, case should be ignored during matching
Returns: the pattern associated with this term
Parameters: match the String to compare to
Returns: true if this patter is a substring of the supplied String