@Test public void testHostPortAlternative() { URI uri = URI.fromHostPort("db1.pilosa.com", 3333); compare(uri, "http", "db1.pilosa.com", 3333); }
@SuppressWarnings("WeakerAccess") public static URI fromHostPort(String host, int port) { URI uri = new URI(); uri.setHost(host); uri.setPort(port); return uri; }
URI { @SuppressWarnings("WeakerAccess") public static URI fromHostPort(String host, int port) { URI uri = new URI(); uri.setHost(host); uri.setPort(port); return uri; } }
URI { @SuppressWarnings("WeakerAccess") public static URI fromHostPort(String host, int port) { URI uri = new URI(); uri.setHost(host); uri.setPort(port); return uri; } private  URI(); }
URI { @SuppressWarnings("WeakerAccess") public static URI fromHostPort(String host, int port) { URI uri = new URI(); uri.setHost(host); uri.setPort(port); return uri; } private  URI(); @SuppressWarnings("WeakerAccess") static URI defaultURI(); @SuppressWarnings("WeakerAccess") static URI fromHostPort(String host, int port); static URI address(String address); @SuppressWarnings("WeakerAccess") String getScheme(); @SuppressWarnings("WeakerAccess") String getHost(); @SuppressWarnings("WeakerAccess") int getPort(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); }
URI { @SuppressWarnings("WeakerAccess") public static URI fromHostPort(String host, int port) { URI uri = new URI(); uri.setHost(host); uri.setPort(port); return uri; } private  URI(); @SuppressWarnings("WeakerAccess") static URI defaultURI(); @SuppressWarnings("WeakerAccess") static URI fromHostPort(String host, int port); static URI address(String address); @SuppressWarnings("WeakerAccess") String getScheme(); @SuppressWarnings("WeakerAccess") String getHost(); @SuppressWarnings("WeakerAccess") int getPort(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }