@Override
  public boolean equals(Object right_obj) {
    if (right_obj instanceof byte[]) {
      return compareTo((byte[]) right_obj) == 0;
    }
    if (right_obj instanceof Bytes) {
      return compareTo((Bytes) right_obj) == 0;
    }
    return false;
  }
Compares the bytes in this object to the specified byte array
@return Positive if left is bigger than right, 0 if they are equal, and negative if left is
        smaller than right.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java