FileDocCategorySizeDatePackage
ComparisonTerm.javaAPI DocGlassfish v2 API2990Mon May 14 15:28:50 BST 2007javax.mail.search

ComparisonTerm

public abstract class ComparisonTerm extends SearchTerm
This class models the comparison operator. This is an abstract class; subclasses implement comparisons for different datatypes.
author
Bill Shannon
author
John Mani

Fields Summary
public static final int
LE
public static final int
LT
public static final int
EQ
public static final int
NE
public static final int
GT
public static final int
GE
protected int
comparison
The comparison.
private static final long
serialVersionUID
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object obj)
Equality comparison.


           
        
	if (!(obj instanceof ComparisonTerm))
	    return false;
	ComparisonTerm ct = (ComparisonTerm)obj;
	return ct.comparison == this.comparison;
    
public inthashCode()
Compute a hashCode for this object.

	return comparison;