@Test public void isPublicAddress_privateNetwork() throws Exception { assertThat(AddressUtils.isPublicAddress("10.0.0.1"), is(true)); assertThat(AddressUtils.isPublicAddress("172.16.0.1"), is(true)); assertThat(AddressUtils.isPublicAddress("192.168.0.1"), is(true)); }
public static boolean isPublicAddress(final String address) throws UnknownHostException { return !isLocalAddress(address); }
AddressUtils { public static boolean isPublicAddress(final String address) throws UnknownHostException { return !isLocalAddress(address); } }
AddressUtils { public static boolean isPublicAddress(final String address) throws UnknownHostException { return !isLocalAddress(address); }  }
AddressUtils { public static boolean isPublicAddress(final String address) throws UnknownHostException { return !isLocalAddress(address); }  static boolean isLocalAddress(final String address); static boolean isPublicAddress(final String address); }
AddressUtils { public static boolean isPublicAddress(final String address) throws UnknownHostException { return !isLocalAddress(address); }  static boolean isLocalAddress(final String address); static boolean isPublicAddress(final String address);  }