private boolean isGreaterThan(long a, long b, boolean checkForEquals) {
    return a > b || (checkForEquals && (a == b));
  }
Updates the location with new only if the new location has a higher seqNum than the old one or
force is true.
@param location       the location to add or update
@param checkForEquals whether to update the location if seqNums for the HRegionLocations for
                      the old and new location are the same
@param force          whether to force update
@return an RegionLocations object with updated locations or the same object if nothing is
        updated
hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLocations.java