javax.mail.search
Class FromTerm
- Serializable
public final class FromTerm
This class implements comparisons for the From Address header.
boolean | equals(Object other) - Equality comparison.
|
boolean | match(Message msg) - The address comparator.
|
FromTerm
public FromTerm(Address address)
Constructor
address
- The Address to be compared
equals
public boolean equals(Object other)
Equality comparison.
- equals in interface AddressTerm
match
public boolean match(Message msg)
The address comparator.
- match in interface SearchTerm
msg
- The address comparison is applied to this Message
- true if the comparison succeeds, otherwise false