@Override
    public boolean equals(Object obj) {
      if (!(obj instanceof ScanWithEquals)) {
        return false;
      }
      ScanWithEquals otherScan = (ScanWithEquals) obj;
      return Objects.equals(this.startRow, otherScan.startRow)
        && Objects.equals(this.stopRow, otherScan.stopRow);
    }
Creates a new instance of this class while copying all values.
@param scan The scan instance to copy from.
@throws java.io.IOException When copying the values fails.
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestMultiTableSnapshotInputFormatImpl.java