@Test public void testValidIPv4Address() { Assert.assertTrue(InetAddressUtils.isIPv4Address("127.0.0.1")); Assert.assertTrue(InetAddressUtils.isIPv4Address("192.168.0.0")); Assert.assertTrue(InetAddressUtils.isIPv4Address("255.255.255.255")); }
public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); }
InetAddressUtils { public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); } }
InetAddressUtils { public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); } private  InetAddressUtils(); }
InetAddressUtils { public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); } private  InetAddressUtils(); static boolean isIPv4Address(final String input); static boolean isIPv6StdAddress(final String input); static boolean isIPv6HexCompressedAddress(final String input); static boolean isIPv6Address(final String input); }
InetAddressUtils { public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); } private  InetAddressUtils(); static boolean isIPv4Address(final String input); static boolean isIPv6StdAddress(final String input); static boolean isIPv6HexCompressedAddress(final String input); static boolean isIPv6Address(final String input);  }