javax.mail.search

Class IntegerComparisonTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
MessageNumberTerm, SizeTerm

public abstract class IntegerComparisonTerm
extends ComparisonTerm

An integer comparison.
Version:
1.4
Author:
Chris Burdess

Field Summary

protected int
number
The number.

Fields inherited from class javax.mail.search.ComparisonTerm

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

Constructor Summary

IntegerComparisonTerm(int comparison, int number)

Method Summary

boolean
equals(Object other)
int
getComparison()
Returns the type of comparison.
int
getNumber()
Returns the number to compare with.
int
hashCode()
protected boolean
match(int i)

Methods inherited from class javax.mail.search.ComparisonTerm

equals, hashCode

Methods inherited from class javax.mail.search.SearchTerm

match

Field Details

number

protected int number
The number.

Constructor Details

IntegerComparisonTerm

protected IntegerComparisonTerm(int comparison,
                                int number)

Method Details

equals

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

getComparison

public int getComparison()
Returns the type of comparison.

getNumber

public int getNumber()
Returns the number to compare with.

hashCode

public int hashCode()
Overrides:
hashCode in interface ComparisonTerm

match

protected boolean match(int i)

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