@Test public void testParseAddressList() { InetSocketAddress[] addresses = InetSocketAddressUtils.parseAddressList(in.split(",")); for (int x = 0; x < in.split(",").length; x++) { assertTrue(addresses[x].equals(createInetSocketAddress(in.split(",")[x]))); } assertTrue(addresses.length == in.split(",").length); }
public static InetSocketAddress[] parseAddressList(String[] addresses) { InetSocketAddress[] isa = new InetSocketAddress[addresses.length]; for (int x = 0; x < addresses.length; x++) { isa[x] = createInetSocketAddress(addresses[x]); } return isa; }
InetSocketAddressUtils { public static InetSocketAddress[] parseAddressList(String[] addresses) { InetSocketAddress[] isa = new InetSocketAddress[addresses.length]; for (int x = 0; x < addresses.length; x++) { isa[x] = createInetSocketAddress(addresses[x]); } return isa; } }
InetSocketAddressUtils { public static InetSocketAddress[] parseAddressList(String[] addresses) { InetSocketAddress[] isa = new InetSocketAddress[addresses.length]; for (int x = 0; x < addresses.length; x++) { isa[x] = createInetSocketAddress(addresses[x]); } return isa; } private  InetSocketAddressUtils(); }
InetSocketAddressUtils { public static InetSocketAddress[] parseAddressList(String[] addresses) { InetSocketAddress[] isa = new InetSocketAddress[addresses.length]; for (int x = 0; x < addresses.length; x++) { isa[x] = createInetSocketAddress(addresses[x]); } return isa; } private  InetSocketAddressUtils(); static String asString(SocketAddress socketAddress); static InetSocketAddress[] parseAddressList(String[] addresses); static InetSocketAddress createInetSocketAddress(String address); static InetSocketAddress createInetSocketAddress(String address, int defaultPort); }
InetSocketAddressUtils { public static InetSocketAddress[] parseAddressList(String[] addresses) { InetSocketAddress[] isa = new InetSocketAddress[addresses.length]; for (int x = 0; x < addresses.length; x++) { isa[x] = createInetSocketAddress(addresses[x]); } return isa; } private  InetSocketAddressUtils(); static String asString(SocketAddress socketAddress); static InetSocketAddress[] parseAddressList(String[] addresses); static InetSocketAddress createInetSocketAddress(String address); static InetSocketAddress createInetSocketAddress(String address, int defaultPort);  }