javax.mail.search

Class MessageNumberTerm

Implemented Interfaces:
Serializable

public final class MessageNumberTerm
extends IntegerComparisonTerm

This class implements comparisons for Message numbers.

Field Summary

Fields inherited from class javax.mail.search.IntegerComparisonTerm

number

Fields inherited from class javax.mail.search.ComparisonTerm

EQ, GE, GT, LE, LT, NE, comparison

Constructor Summary

MessageNumberTerm(int number)
Constructor.

Method Summary

boolean
equals(Object other)
Equality comparison.
boolean
match(Message msg)
The match method.

Methods inherited from class javax.mail.search.IntegerComparisonTerm

equals, getComparison, getNumber, hashCode, match

Methods inherited from class javax.mail.search.ComparisonTerm

equals, hashCode

Methods inherited from class javax.mail.search.SearchTerm

match

Constructor Details

MessageNumberTerm

public MessageNumberTerm(int number)
Constructor.

Parameters:
number - the Message number

Method Details

equals

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


match

public boolean match(Message msg)
The match method.
Overrides:
match in interface SearchTerm

Parameters:
msg - the Message number is matched with this Message