@Test public void testIsDecimalIpAddress() { Assert.assertTrue(ipUtils.isDecimalIpAddress(ipDec)); Assert.assertFalse(ipUtils.isDecimalIpAddress(ipHex)); Assert.assertFalse(ipUtils.isDecimalIpAddress(ipOct)); Assert.assertFalse(ipUtils.isDecimalIpAddress(ipBin)); Assert.assertFalse(ipUtils.isDecimalIpAddress(ipNum)); }
public boolean isDecimalIpAddress(String ip) { return DECIMAL_PATTERN.matcher(ip).matches(); }
IpUtils { public boolean isDecimalIpAddress(String ip) { return DECIMAL_PATTERN.matcher(ip).matches(); } }
IpUtils { public boolean isDecimalIpAddress(String ip) { return DECIMAL_PATTERN.matcher(ip).matches(); }  }
IpUtils { public boolean isDecimalIpAddress(String ip) { return DECIMAL_PATTERN.matcher(ip).matches(); }  boolean isIpAddress(String ip); boolean isDecimalIpAddress(String ip); boolean isBinaryIpAddress(String ip); boolean isOctalEncodedIpAddress(String ip); boolean isHexEncodedIpAddress(String ip); boolean isNumericIpAddress(String ip); InetAddress toInetAddress(String ip); }
IpUtils { public boolean isDecimalIpAddress(String ip) { return DECIMAL_PATTERN.matcher(ip).matches(); }  boolean isIpAddress(String ip); boolean isDecimalIpAddress(String ip); boolean isBinaryIpAddress(String ip); boolean isOctalEncodedIpAddress(String ip); boolean isHexEncodedIpAddress(String ip); boolean isNumericIpAddress(String ip); InetAddress toInetAddress(String ip);  }