@Test public void testFullWithIPv6Host() { List<Object[]> addresses = Arrays.asList( new Object[]{"[::1]", "http", "[::1]", 10101}, new Object[]{"[::1]:3333", "http", "[::1]", 3333}, new Object[]{"[fd42:4201:f86b:7e09:216:3eff:fefa:ed80]:3333", "http", "[fd42:4201:f86b:7e09:216:3eff:fefa:ed80]", 3333}, new Object[]{"https: ); for (Object[] tuple : addresses) { URI uri = URI.address((String) tuple[0]); compare(uri, (String) tuple[1], (String) tuple[2], (Integer) tuple[3]); } }
public static URI address(String address) { URI uri = new URI(); uri._parse(address); return uri; }
URI { public static URI address(String address) { URI uri = new URI(); uri._parse(address); return uri; } }
URI { public static URI address(String address) { URI uri = new URI(); uri._parse(address); return uri; } private  URI(); }
URI { public static URI address(String address) { URI uri = new URI(); uri._parse(address); 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 { public static URI address(String address) { URI uri = new URI(); uri._parse(address); 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();  }