javax.mail.search

Class AddressStringTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
FromStringTerm, RecipientStringTerm

public abstract class AddressStringTerm
extends StringTerm

A Term that compares two Addresses as Strings.

Field Summary

Fields inherited from class javax.mail.search.StringTerm

ignoreCase, pattern

Constructor Summary

AddressStringTerm(String pattern)
Constructor.

Method Summary

protected boolean
match(Address address)
Tests if the patterm associated with this Term is a substring of the address in the supplied object.

Methods inherited from class javax.mail.search.StringTerm

equals, getIgnoreCase, getPattern, hashCode, match

Methods inherited from class javax.mail.search.SearchTerm

match

Constructor Details

AddressStringTerm

protected AddressStringTerm(String pattern)
Constructor.
Parameters:
pattern - the pattern to be compared

Method Details

match

protected boolean match(Address address)
Tests if the patterm associated with this Term is a substring of the address in the supplied object.
Parameters:
address -
Returns: