| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public abstract class StringTerm extends SearchTerm
This class implements the match method for Strings. The current implementation provides only for substring matching. We could add comparisons (like strcmp ...).
Field Summary | |
---|---|
protected boolean |
ignoreCase
Ignore case when comparing? |
protected String |
pattern
The pattern. |
Constructor Summary | |
---|---|
protected |
StringTerm(String pattern) |
protected |
StringTerm(String pattern, boolean ignoreCase) |
Method Summary | |
---|---|
boolean |
Equality comparison. |
boolean |
Return true if we should ignore case when matching. |
String |
Return the string to match with. |
int |
hashCode() Compute a hashCode for this object. |
protected boolean |
|
Methods inherited from class javax.mail.search.SearchTerm |
---|
match |
Field Detail |
---|
protected boolean ignoreCase
protected String pattern
Constructor Detail |
---|
protected StringTerm(String pattern)
pattern
protected StringTerm(String pattern, boolean ignoreCase)
pattern
ignoreCase
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
obj
public boolean getIgnoreCase()
public String getPattern()
public int hashCode()
hashCode
in class Object
protected boolean match(String s)
s
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |