Top Description Fields Constructors Methods
javax.mail.search

public final Class FromTerm

extends AddressTerm
Class Inheritance
Imports
javax.mail.Message, .Address

This class implements comparisons for the From Address header.
Authors
Bill Shannon, John Mani

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from javax.mail.search.AddressTerm:
address

Constructor Summary

AccessConstructor and Description
public
FromTerm(Address
The Address to be compared
address
)

Constructor

Method Summary

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

Overrides javax.mail.search.AddressTerm.equals.

Equality comparison.
public boolean

Returns:

true if the comparison succeeds, otherwise false
match
(Message
The address comparison is applied to this Message
msg
)

Implements abstract javax.mail.search.SearchTerm.match.

The address comparator.
Inherited from javax.mail.search.AddressTerm:
getAddresshashCodematch

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.mail.search.AddressTerm.serialVersionUID.

Constructor Detail

FromTermback to summary
public FromTerm(Address address)

Constructor

Parameters
address:Address

The Address to be compared

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides javax.mail.search.AddressTerm.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
matchback to summary
public boolean match(Message msg)

Implements abstract javax.mail.search.SearchTerm.match.

The address comparator.

Parameters
msg:Message

The address comparison is applied to this Message

Returns:boolean

true if the comparison succeeds, otherwise false

Annotations
@Override