javax.mail.search
Class AddressTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.AddressTerm
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FromTerm, RecipientTerm

public abstract class AddressTerm
extends SearchTerm

A comparison of message addresses.

Version:
1.3
Author:
Chris Burdess
See Also:
Serialized Form

Field Summary
protected  Address address
          The address.
 
Constructor Summary
protected AddressTerm(Address address)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 Address getAddress()
          Returns the address to match.
 int hashCode()
           
protected  boolean match(Address address)
          Returns true if the specified address matches the address specified in this term.
 
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
 

Field Detail

address

protected Address address
The address.

Constructor Detail

AddressTerm

protected AddressTerm(Address address)
Method Detail

getAddress

public Address getAddress()
Returns the address to match.


match

protected boolean match(Address address)
Returns true if the specified address matches the address specified in this term.


equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


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