⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.mail.search

Class SizeTerm

java.lang.Object
|
+--javax.mail.search.SearchTerm
   |
   +--javax.mail.search.ComparisonTerm
      |
      +--javax.mail.search.IntegerComparisonTerm
         |
         +--javax.mail.search.SizeTerm


public final class SizeTerm
extends IntegerComparisonTerm

This class implements comparisons for Message sizes.
Author:

Constructor Summary

SizeTerm(int comparison, int size)

Constructor.

Method Summary

boolean

equals(Object other)

Equality comparison.

boolean

match(Message msg)

The match method.

Constructor Details

SizeTerm

public SizeTerm(int comparison, int size)

Constructor.

Parameters:
comparison - the Comparison type
size - the size

Method Details

equals

public boolean equals(Object other)

Equality comparison.

Parameters:
other

match

public boolean match(Message msg)

The match method.

Parameters:
msg - the size comparator is applied to this Message's size
Returns:
true if the size is equal, otherwise false