Package javax.mail.search
Class IntegerComparisonTerm
- java.lang.Object
-
- javax.mail.search.SearchTerm
-
- javax.mail.search.ComparisonTerm
-
- javax.mail.search.IntegerComparisonTerm
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MessageNumberTerm,SizeTerm
public abstract class IntegerComparisonTerm extends ComparisonTerm
An integer comparison.- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intnumberThe number.-
Fields inherited from class javax.mail.search.ComparisonTerm
comparison, EQ, GE, GT, LE, LT, NE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntegerComparisonTerm(int comparison, int number)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)intgetComparison()Returns the type of comparison.intgetNumber()Returns the number to compare with.inthashCode()protected booleanmatch(int i)-
Methods inherited from class javax.mail.search.SearchTerm
match
-
-
-
-
Method Detail
-
getNumber
public int getNumber()
Returns the number to compare with.
-
getComparison
public int getComparison()
Returns the type of comparison.
-
match
protected boolean match(int i)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classComparisonTerm
-
hashCode
public int hashCode()
- Overrides:
hashCodein classComparisonTerm
-
-