javax.mail.search

Class SubjectTerm

Implemented Interfaces:
Serializable

public final class SubjectTerm
extends StringTerm

A comparison of message subject headers.
Version:
1.4
Author:
Chris Burdess

Field Summary

Fields inherited from class javax.mail.search.StringTerm

ignoreCase, pattern

Constructor Summary

SubjectTerm(String pattern)
Constructor.

Method Summary

boolean
equals(Object other)
boolean
match(Message msg)
Returns true only if the pattern specified in this term is a substring of the given message's Subject header.

Methods inherited from class javax.mail.search.StringTerm

equals, getIgnoreCase, getPattern, hashCode, match

Methods inherited from class javax.mail.search.SearchTerm

match

Constructor Details

SubjectTerm

public SubjectTerm(String pattern)
Constructor.
Parameters:
pattern - the pattern to match

Method Details

equals

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

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.
Overrides:
match in interface SearchTerm

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