javax.mail.search

Class SubjectTerm

Implemented Interfaces:
Serializable

public final class SubjectTerm
extends StringTerm

This class implements comparisons for the Message Subject header. The comparison is case-insensitive.
Version:
1.3
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)
Equality comparison.
boolean
match(Message msg)
The match method.

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 search for

Method Details

equals

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

match

public boolean match(Message msg)
The match method.
Overrides:
match in interface SearchTerm
Parameters:
msg - the pattern match is applied to this Message's subject header
Returns:
true if the pattern match succeeds, otherwise false

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