Name

ComparisonTerm

Synopsis

This is an abstract class that defines a set of comparison operators. Terms that extend ComparisonTerm support the equals, greater-than-or-equals, less-than-or-equals, greater-than, less-than, and not-equals operators.

                  
public abstract class ComparisonTerm extends SearchTerm {
// Public Constructors
   public ComparisonTerm();  
// Public Constants
   public static final int EQ;                                   // =3
   public static final int GE;                                   // =6
   public static final int GT;                                   // =5
   public static final int LE;                                   // =1
   public static final int LT;                                   // =2
   public static final int NE;                                   // =4
                  // Public Methods Overriding Object
   public boolean equals( Object obj);                           // 1.2
   public int hashCode();                                        // 1.2
                  // Protected Instance Fields
   protected int comparison;  
}

Subclasses

DateTerm, IntegerComparisonTerm

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.