1 21 22 27 28 package javax.mail.search; 29 30 37 public abstract class ComparisonTerm extends SearchTerm { 38 public static final int LE = 1; 39 public static final int LT = 2; 40 public static final int EQ = 3; 41 public static final int NE = 4; 42 public static final int GT = 5; 43 public static final int GE = 6; 44 45 50 protected int comparison; 51 52 private static final long serialVersionUID = 1456646953666474308L; 53 54 57 public boolean equals(Object obj) { 58 if (!(obj instanceof ComparisonTerm )) 59 return false; 60 ComparisonTerm ct = (ComparisonTerm )obj; 61 return ct.comparison == this.comparison; 62 } 63 64 67 public int hashCode() { 68 return comparison; 69 } 70 } 71 | Popular Tags |