javax.mail.search
Class FromTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.AddressTerm
javax.mail.search.FromTerm
- All Implemented Interfaces:
- Serializable
public final class FromTerm
- extends AddressTerm
A comparison of the From address.
- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(Object other)
|
boolean |
match(Message msg)
Returns true if the From address in the given message matches the
address specified in this term. |
FromTerm
public FromTerm(Address address)
- Constructor.
- Parameters:
address
- the address for comparison
match
public boolean match(Message msg)
- Returns true if the From address in the given message matches the
address specified in this term.
- Specified by:
match
in class SearchTerm
equals
public boolean equals(Object other)
- Overrides:
equals
in class AddressTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved