javax.mail.search
Class RecipientTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.AddressTerm
javax.mail.search.RecipientTerm
- All Implemented Interfaces:
- java.io.Serializable
- public final class RecipientTerm
- extends AddressTerm
A comparison of recipient headers in a message.
- Version:
- 1.3
- Author:
- Chris Burdess
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
type
protected Message.RecipientType type
- The recipient type.
RecipientTerm
public RecipientTerm(Message.RecipientType type,
Address address)
- Constructor.
- Parameters:
type
- the recipient typeaddress
- the address to match
getRecipientType
public Message.RecipientType getRecipientType()
- Returns the recipient type.
match
public boolean match(Message msg)
- Returns true only if the recipient address in the given message matches
the address specified in this term.
- Specified by:
match
in class SearchTerm
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class AddressTerm
hashCode
public int hashCode()
- Overrides:
hashCode
in class AddressTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved