public @NotNull List<@NotNull InetSocketAddress> getLocators() {
    final List<@NotNull InetSocketAddress> addresses = new ArrayList<>(locators.size());
    for (final HostAndPort locator : locators) {
      addresses.add(locator.getSocketInetAddress());
    }
    return addresses;
  }
A Comparator used to sort a list of locator addresses. This should not be used in other ways as
it can return zero when two addresses aren't actually equal.
geode-core/src/main/java/org/apache/geode/cache/client/internal/LocatorList.java