javax.mail.search

Class IntegerComparisonTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
MessageNumberTerm, SizeTerm

public abstract class IntegerComparisonTerm
extends ComparisonTerm

This class implements comparisons for integers.

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)
Equality comparison.
int
getComparison()
Return the type of comparison.
int
getNumber()
Return the number to compare with.
int
hashCode()
Compute a hashCode for this object.
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)
Equality comparison.
Overrides:
equals in interface ComparisonTerm


getComparison

public int getComparison()
Return the type of comparison.


getNumber

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


hashCode

public int hashCode()
Compute a hashCode for this object.
Overrides:
hashCode in interface ComparisonTerm


match

protected boolean match(int i)