javax.mail.search

Class FromTerm

Implemented Interfaces:
Serializable

public final class FromTerm
extends AddressTerm

A comparison of the From address.
Version:
1.4
Author:
Chris Burdess

Field Summary

Fields inherited from class javax.mail.search.AddressTerm

address

Constructor Summary

FromTerm(Address address)
Constructor.

Method Summary

boolean
equals(Object other)
boolean
match(Message msg)
Returns true if the From address in the given message matches the address specified in this term.

Methods inherited from class javax.mail.search.AddressTerm

equals, getAddress, hashCode, match

Methods inherited from class javax.mail.search.SearchTerm

match

Constructor Details

FromTerm

public FromTerm(Address address)
Constructor.
Parameters:
address - the address for comparison

Method Details

equals

public boolean equals(Object other)
Overrides:
equals in interface AddressTerm

match

public boolean match(Message msg)
Returns true if the From address in the given message matches the address specified in this term.
Overrides:
match in interface SearchTerm

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