javax.mail.search

Class AddressStringTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
FromStringTerm, RecipientStringTerm

public abstract class AddressStringTerm
extends StringTerm

A string comparison of message addresses.
Version:
1.4
Author:
Chris Burdess

Field Summary

Fields inherited from class javax.mail.search.StringTerm

ignoreCase, pattern

Constructor Summary

AddressStringTerm(String pattern)
Constructor.

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.

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 address pattern for comparison

Method Details

equals

public boolean equals(Object other)
Overrides:
equals in interface StringTerm

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

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved