javax.mail.search

Class MessageNumberTerm

Implemented Interfaces:
Serializable

public final class MessageNumberTerm
extends IntegerComparisonTerm

A comparison of message numbers.
Version:
1.4
Author:
Chris Burdess

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)
boolean
match(Message msg)
Returns true if the message number of the given message is equal to the message number specified in this term.

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 to match

Method Details

equals

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

match

public boolean match(Message msg)
Returns true if the message number of the given message is equal to the message number specified in this term.
Overrides:
match in interface SearchTerm

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