Top Description Fields Constructors Methods
javax.mail.search

public abstract Class AddressTerm

extends SearchTerm
Class Inheritance
Known Direct Subclasses
javax.mail.search.FromTerm, javax.mail.search.RecipientTerm
Imports
javax.mail.Address

This class implements Message Address comparisons.
Authors
Bill Shannon, John Mani

Field Summary

Modifier and TypeField and Description
protected Address
address

The address.

private static final long

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Equality comparison.
public Address

Returns:

the adddress
getAddress
()

Return the address to match with.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Compute a hashCode for this object.
protected boolean

Returns:

true if it matches
match
(Address
the address to match
a
)

Match against the argument Address.

Inherited from javax.mail.search.SearchTerm:
match

Field Detail

addressback to summary
protected Address address

The address.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.mail.search.SearchTerm.serialVersionUID.

Constructor Detail

AddressTermback to summary
protected AddressTerm(Address address)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Equality comparison.

Parameters
obj:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getAddressback to summary
public Address getAddress()

Return the address to match with.

Returns:Address

the adddress

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Compute a hashCode for this object.

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object.

Annotations
@Override
matchback to summary
protected boolean match(Address a)

Match against the argument Address.

Parameters
a:Address

the address to match

Returns:boolean

true if it matches