javax.mail.search
Class AddressStringTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.StringTerm
          extended by 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
protected AddressStringTerm(java.lang.String pattern)
          Constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressStringTerm

protected AddressStringTerm(java.lang.String pattern)
Constructor.

Parameters:
pattern - the address pattern for comparison
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 class StringTerm


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