javax.mail.search
Class StringTerm
- Serializable
public abstract class StringTerm
A Term that provides matching criteria for Strings.
protected boolean | ignoreCase - If true, case should be ignored during matching.
|
protected String | pattern - The pattern associated with this term.
|
StringTerm(String pattern) - Constructor specifying a pattern.
|
StringTerm(String pattern, boolean ignoreCase) - Constructor specifying pattern and case sensitivity.
|
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.
|
ignoreCase
protected boolean ignoreCase
If true, case should be ignored during matching.
pattern
protected String pattern
The pattern associated with this term.
StringTerm
protected StringTerm(String pattern)
Constructor specifying a pattern.
Defaults to case insensitive matching.
pattern
- the pattern for this term
StringTerm
protected StringTerm(String pattern,
boolean ignoreCase)
Constructor specifying pattern and case sensitivity.
pattern
- the pattern for this termignoreCase
- if true, case should be ignored during matching
equals
public boolean equals(Object other)
getIgnoreCase
public boolean getIgnoreCase()
Indicate if case should be ignored when matching.
- if true, case should be ignored during matching
getPattern
public String getPattern()
Return the pattern associated with this term.
- the pattern associated with this term
hashCode
public int hashCode()
match
protected boolean match(String match)
Determine if the pattern associated with this term is a substring of the
supplied String. If ignoreCase is true then case will be ignored.
match
- the String to compare to
- true if this patter is a substring of the supplied String