javax.mail.search
Class SizeTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.ComparisonTerm
javax.mail.search.IntegerComparisonTerm
javax.mail.search.SizeTerm
- All Implemented Interfaces:
- Serializable
public final class SizeTerm
- extends IntegerComparisonTerm
A comparison of message sizes.
- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
Constructor Summary |
SizeTerm(int comparison,
int size)
Constructor. |
Method Summary |
boolean |
equals(Object other)
|
boolean |
match(Message msg)
Returns true only if the size of the given message matches the
specified size using the specified operator. |
SizeTerm
public SizeTerm(int comparison,
int size)
- Constructor.
- Parameters:
comparison
- the comparison operatorsize
- the size
match
public boolean match(Message msg)
- Returns true only if the size of the given message matches the
specified size using the specified operator.
- Specified by:
match
in class SearchTerm
equals
public boolean equals(Object other)
- Overrides:
equals
in class IntegerComparisonTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved