@Override
  public boolean equals(Object thatObject) {
    if (thatObject == null) {
      return false;
    }
    if (this == thatObject) {
      return true;
    }
    if (hashCode() != thatObject.hashCode()) {
      return false;
    }
    if (!(thatObject instanceof SimpleByteRange)) {
      return false;
    }
    SimpleByteRange that = (SimpleByteRange) thatObject;
    return Bytes.equals(bytes, offset, length, that.bytes, that.offset, that.length);
  }
Create a new {@code ByteRange} over the provided {@code bytes}.
@param bytes  The array to wrap.
@param offset The offset into {@code bytes} considered the beginning of this range.
@param length The length of this range.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/SimpleByteRange.java