javax.mail.search

Class FromTerm

public final class FromTerm extends AddressTerm

A comparison of the From address.

Version: 1.4

Author: Chris Burdess

Constructor Summary
FromTerm(Address address)
Constructor.
Method Summary
booleanequals(Object other)
booleanmatch(Message msg)
Returns true if the From address in the given message matches the address specified in this term.

Constructor Detail

FromTerm

public FromTerm(Address address)
Constructor.

Parameters: address the address for comparison

Method Detail

equals

public boolean equals(Object other)

match

public boolean match(Message msg)
Returns true if the From address in the given message matches the address specified in this term.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved