java.io.Serializable
public final class RecipientTerm extends AddressTerm
Modifier and Type | Field | Description |
---|---|---|
protected Message.RecipientType |
type |
The recipient type.
|
address
Constructor | Description |
---|---|
RecipientTerm(Message.RecipientType type,
Address address) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object other) |
|
Message.RecipientType |
getRecipientType() |
Returns the recipient type.
|
int |
hashCode() |
|
boolean |
match(Message msg) |
Returns true only if the recipient address in the given message matches
the address specified in this term.
|
getAddress, match
protected Message.RecipientType type
public RecipientTerm(Message.RecipientType type, Address address)
type
- the recipient typeaddress
- the address to matchpublic Message.RecipientType getRecipientType()
public boolean match(Message msg)
match
in class SearchTerm
public boolean equals(java.lang.Object other)
equals
in class AddressTerm
public int hashCode()
hashCode
in class AddressTerm
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved