Package javax.mail.search
Class AddressStringTerm
- java.lang.Object
-
- javax.mail.search.SearchTerm
-
- javax.mail.search.StringTerm
-
- javax.mail.search.AddressStringTerm
-
- All Implemented Interfaces:
java.io.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
-
-
Field Summary
-
Fields inherited from class javax.mail.search.StringTerm
ignoreCase, pattern
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AddressStringTerm(java.lang.String pattern)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.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.-
Methods inherited from class javax.mail.search.StringTerm
getIgnoreCase, getPattern, hashCode, match
-
Methods inherited from class javax.mail.search.SearchTerm
match
-
-
-
-
Method Detail
-
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(java.lang.Object other)
- Overrides:
equals
in classStringTerm
-
-