private HRegionLocation selectRegionLocation(HRegionLocation oldLocation,
    HRegionLocation location, boolean checkForEquals, boolean force) {
    if (location == null) {
      return oldLocation == null ? null : oldLocation;
    }

    if (oldLocation == null) {
      return location;
    }

    if (force || isGreaterThan(location.getSeqNum(), oldLocation.getSeqNum(), checkForEquals)) {
      return location;
    }
    return oldLocation;
  }
Merges this RegionLocations list with the given list assuming same range, and keeping the most
up to date version of the HRegionLocation entries from either list according to seqNum. If
seqNums are equal, the location from the argument (other) is taken.
@param other the locations to merge with
@return an RegionLocations object with merged locations or the same object if nothing is merged
hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLocations.java