javax.mail.search

Class SubjectTerm

public final class SubjectTerm extends StringTerm

A comparison of message subject headers.

Version: 1.4

Author: Chris Burdess

Constructor Summary
SubjectTerm(String pattern)
Constructor.
Method Summary
booleanequals(Object other)
booleanmatch(Message msg)
Returns true only if the pattern specified in this term is a substring of the given message's Subject header.

Constructor Detail

SubjectTerm

public SubjectTerm(String pattern)
Constructor.

Parameters: pattern the pattern to match

Method Detail

equals

public boolean equals(Object other)

match

public boolean match(Message msg)
Returns true only if the pattern specified in this term is a substring of the given message's Subject header.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved