Exemple #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((expr == null) ? 0 : expr.hashCode());
   return result;
 }
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((unit == null) ? 0 : unit.hashCode());
   result = prime * result + ((value == null) ? 0 : value.hashCode());
   return result;
 }
Exemple #3
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   SQLArrayExpr other = (SQLArrayExpr) obj;
   if (expr == null) {
     if (other.expr != null) return false;
   } else if (!expr.equals(other.expr)) return false;
   if (values == null) {
     if (other.values != null) return false;
   } else if (!values.equals(other.values)) return false;
   return true;
 }
Exemple #4
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   SQLNotExpr other = (SQLNotExpr) obj;
   if (expr == null) {
     if (other.expr != null) {
       return false;
     }
   } else if (!expr.equals(other.expr)) {
     return false;
   }
   return true;
 }
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (!(obj instanceof MySqlExtractExpr)) {
     return false;
   }
   MySqlExtractExpr other = (MySqlExtractExpr) obj;
   if (unit != other.unit) {
     return false;
   }
   if (value == null) {
     if (other.value != null) {
       return false;
     }
   } else if (!value.equals(other.value)) {
     return false;
   }
   return true;
 }