public static InetSocketAddress[] toSocketAddress(Address[] addrs) {
    if (addrs == null) {
      return null;
    }
    InetSocketAddress[] result = new InetSocketAddress[addrs.length];
    for (int i = 0; i < addrs.length; i++) {
      result[i] = toSocketAddress(addrs[i]);
    }
    return result;
  }
An immutable type to hold a hostname and port combo, like an Endpoint or
java.net.InetSocketAddress (but without danger of our calling resolve -- we do NOT want a resolve
happening every time we want to hold a hostname and port combo). This class is also
{@link Comparable}
<p>
In implementation this class is a facade over Guava's {@link HostAndPort}. We cannot have Guava
classes in our API hence this Type.
hbase-common/src/main/java/org/apache/hadoop/hbase/net/Address.java