javax.mail.search

Class ComparisonTerm

Implemented Interfaces:
Serializable
Known Direct Subclasses:
DateTerm, IntegerComparisonTerm

public abstract class ComparisonTerm
extends SearchTerm

This class models the comparison operator. This is an abstract class; subclasses implement comparisons for different datatypes.

Field Summary

static int
EQ
static int
GE
static int
GT
static int
LE
static int
LT
static int
NE
protected int
comparison
The comparison.

Method Summary

boolean
equals(Object other)
Equality comparison.
int
hashCode()
Compute a hashCode for this object.

Methods inherited from class javax.mail.search.SearchTerm

match

Field Details

EQ

public static final int EQ

Field Value:
3


GE

public static final int GE

Field Value:
6


GT

public static final int GT

Field Value:
5


LE

public static final int LE

Field Value:
1


LT

public static final int LT

Field Value:
2


NE

public static final int NE

Field Value:
4


comparison

protected int comparison
The comparison.

Method Details

equals

public boolean equals(Object other)
Equality comparison.


hashCode

public int hashCode()
Compute a hashCode for this object.