|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.mail.search.SearchTerm
javax.mail.search.StringTerm
A Term that provides matching criteria for Strings.
| Field Summary | |
protected boolean |
ignoreCase
If true, case should be ignored during matching. |
protected java.lang.String |
pattern
The pattern associated with this term. |
| Constructor Summary | |
protected |
StringTerm(java.lang.String pattern)
Constructor specifying a pattern. |
protected |
StringTerm(java.lang.String pattern,
boolean ignoreCase)
Constructor specifying pattern and case sensitivity. |
| Method Summary | |
boolean |
equals(java.lang.Object other)
|
boolean |
getIgnoreCase()
Indicate if case should be ignored when matching. |
java.lang.String |
getPattern()
Return the pattern associated with this term. |
int |
hashCode()
|
protected boolean |
match(java.lang.String match)
Determine if the pattern associated with this term is a substring of the supplied String. |
| Methods inherited from class javax.mail.search.SearchTerm |
match |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean ignoreCase
protected java.lang.String pattern
| Constructor Detail |
protected StringTerm(java.lang.String pattern)
pattern - the pattern for this term
protected StringTerm(java.lang.String pattern,
boolean ignoreCase)
pattern - the pattern for this termignoreCase - if true, case should be ignored during matching| Method Detail |
public java.lang.String getPattern()
public boolean getIgnoreCase()
protected boolean match(java.lang.String match)
match - the String to compare to
public boolean equals(java.lang.Object other)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||