@Override
  public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof BigDecimalComparator)) {
      return false;
    }
    if (this == obj) {
      return true;
    }
    BigDecimalComparator bdc = (BigDecimalComparator) obj;
    return this.bigDecimal.equals(bdc.bigDecimal);
  }
A BigDecimal comparator which numerical compares against the specified byte array
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/BigDecimalComparator.java