Package javax.mail.search
Class IntegerComparisonTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.ComparisonTerm
javax.mail.search.IntegerComparisonTerm
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MessageNumberTerm,SizeTerm
This class implements comparisons for integers.
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality comparison.intReturn the type of comparison.intReturn the number to compare with.inthashCode()Compute a hashCode for this object.Methods inherited from class javax.mail.search.SearchTerm
match
-
Method Details
-
getNumber
public int getNumber()Return the number to compare with.- Returns:
- the number
-
getComparison
public int getComparison()Return the type of comparison.- Returns:
- the comparison type
-
equals
Equality comparison.- Overrides:
equalsin classComparisonTerm
-
hashCode
public int hashCode()Compute a hashCode for this object.- Overrides:
hashCodein classComparisonTerm
-