javax.mail.search
Class ComparisonTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.ComparisonTerm
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DateTerm, IntegerComparisonTerm

public abstract class ComparisonTerm
extends SearchTerm

A comparison for scalar values.

Version:
1.3
Author:
Chris Burdess
See Also:
Serialized Form

Field Summary
protected  int comparison
          The comparison operator.
static int EQ
          The equality operator.
static int GE
          The greater than or equal to operator.
static int GT
          The greater than operator.
static int LE
          The less than or equal to operator.
static int LT
          The less than operator.
static int NE
          The not equal to operator.
 
Constructor Summary
ComparisonTerm()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 
Methods inherited from class javax.mail.search.SearchTerm
match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LE

public static final int LE
The less than or equal to operator.

See Also:
Constant Field Values

LT

public static final int LT
The less than operator.

See Also:
Constant Field Values

EQ

public static final int EQ
The equality operator.

See Also:
Constant Field Values

NE

public static final int NE
The not equal to operator.

See Also:
Constant Field Values

GT

public static final int GT
The greater than operator.

See Also:
Constant Field Values

GE

public static final int GE
The greater than or equal to operator.

See Also:
Constant Field Values

comparison

protected int comparison
The comparison operator.

Constructor Detail

ComparisonTerm

public ComparisonTerm()
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


© Copyright 2003, 2004 The Free Software Foundation, All rights reserved