@Test void parseHostsShouldParseEmptyString() { assertThat(Host.parseHosts("")) .isEmpty(); }
public static ImmutableList<Host> parseHosts(String hostsString) { return parseHosts(hostsString, Optional.empty()); }
Host { public static ImmutableList<Host> parseHosts(String hostsString) { return parseHosts(hostsString, Optional.empty()); } }
Host { public static ImmutableList<Host> parseHosts(String hostsString) { return parseHosts(hostsString, Optional.empty()); } @VisibleForTesting  Host(String hostName, int port); }
Host { public static ImmutableList<Host> parseHosts(String hostsString) { return parseHosts(hostsString, Optional.empty()); } @VisibleForTesting  Host(String hostName, int port); static ImmutableList<Host> parseHosts(String hostsString); static ImmutableList<Host> parseHosts(String hostsString, int defaultPort); static Host from(String hostname, int port); static Host parseConfString(String ipAndPort, int defaultPort); static Host parseConfString(String ipAndPort); static Host parse(String ipAndPort, Optional<Integer> defaultPort); String getHostName(); int getPort(); @Override final int hashCode(); @Override final boolean equals(Object object); String asString(); @Override String toString(); }
Host { public static ImmutableList<Host> parseHosts(String hostsString) { return parseHosts(hostsString, Optional.empty()); } @VisibleForTesting  Host(String hostName, int port); static ImmutableList<Host> parseHosts(String hostsString); static ImmutableList<Host> parseHosts(String hostsString, int defaultPort); static Host from(String hostname, int port); static Host parseConfString(String ipAndPort, int defaultPort); static Host parseConfString(String ipAndPort); static Host parse(String ipAndPort, Optional<Integer> defaultPort); String getHostName(); int getPort(); @Override final int hashCode(); @Override final boolean equals(Object object); String asString(); @Override String toString();  }