javax.mail.search

Class AddressStringTerm

public abstract class AddressStringTerm extends StringTerm

A string comparison of message addresses.

Version: 1.4

Author: Chris Burdess

Constructor Summary
protected AddressStringTerm(String pattern)
Constructor.
Method Summary
booleanequals(Object other)
protected booleanmatch(Address a)
Indicates whether the address pattern specified in the constructor is a substring of the string representation of the given address.

Constructor Detail

AddressStringTerm

protected AddressStringTerm(String pattern)
Constructor.

Parameters: pattern the address pattern for comparison

Method Detail

equals

public boolean equals(Object other)

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