javax.mail.search

Class SizeTerm

public final class SizeTerm extends IntegerComparisonTerm

A comparison of message sizes.

Version: 1.4

Author: Chris Burdess

Constructor Summary
SizeTerm(int comparison, int size)
Constructor.
Method Summary
booleanequals(Object other)
booleanmatch(Message msg)
Returns true only if the size of the given message matches the specified size using the specified operator.

Constructor Detail

SizeTerm

public SizeTerm(int comparison, int size)
Constructor.

Parameters: comparison the comparison operator size the size

Method Detail

equals

public boolean equals(Object other)

match

public boolean match(Message msg)
Returns true only if the size of the given message matches the specified size using the specified operator.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved