@Override
  public boolean equals(Object other) {
    if (other == this) {
      return true;
    }
    if (!(other instanceof BinaryComponentComparator)) {
      return false;
    }
    BinaryComponentComparator bcc = (BinaryComponentComparator) other;
    return offset == bcc.offset && (compareTo(bcc.value) == 0);
  }
Constructor
@param value  value of the component
@param offset offset of the component from begining
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/BinaryComponentComparator.java