public static boolean isSameAddress(final ServerName left, final ServerName right) {
    return left.getAddress().equals(right.getAddress());
  }
Compare two addresses
@param left  the first server address to compare
@param right the second server address to compare
@return {@code true} if {@code left} and {@code right} have the same hostname and port.
hbase-common/src/main/java/org/apache/hadoop/hbase/ServerName.java