javax.mail.search
Class AddressStringTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.AddressStringTerm
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FromStringTerm, RecipientStringTerm
public abstract class AddressStringTerm
- extends StringTerm
A string comparison of message addresses.
- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(Object other)
|
protected boolean |
match(Address a)
Indicates whether the address pattern specified in the constructor is a
substring of the string representation of the given address. |
AddressStringTerm
protected AddressStringTerm(String pattern)
- Constructor.
- Parameters:
pattern
- the address pattern for comparison
match
protected boolean match(Address a)
- Indicates whether the address pattern specified in the constructor is a
substring of the string representation of the given address.
- Parameters:
a
- the address
equals
public boolean equals(Object other)
- Overrides:
equals
in class StringTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved