Example #1
0
 @Override
 public boolean equals(DataValue v) {
   if (v == null) return false;
   if (Types.isNumericType(v.getDataType())) {
     return this.compareTo(v) == 0;
   } else {
     return false;
   }
 }
Example #2
0
 @Override
 public boolean supportsCompare(DataValue dv2) {
   return Types.isNumericType(dv2.getDataType());
 }