|
|||||||||||
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
javax.mail.search.AddressStringTerm
javax.mail.search.FromStringTerm
A string comparison of the From address header.
Field Summary |
Fields inherited from class javax.mail.search.StringTerm |
ignoreCase, pattern |
Constructor Summary | |
FromStringTerm(java.lang.String pattern)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object other)
|
boolean |
match(Message msg)
Indicates whether the address pattern specified in the constructor is a substring of the string representation of the From address in the given message. |
Methods inherited from class javax.mail.search.AddressStringTerm |
match |
Methods inherited from class javax.mail.search.StringTerm |
getIgnoreCase, getPattern, hashCode, match |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FromStringTerm(java.lang.String pattern)
Method Detail |
public boolean match(Message msg)
match
in class SearchTerm
msg
- the messagepublic boolean equals(java.lang.Object other)
equals
in class AddressStringTerm
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |