@Test public void testIsBinaryIpAddress() { Assert.assertFalse(ipUtils.isBinaryIpAddress(ipDec)); Assert.assertFalse(ipUtils.isBinaryIpAddress(ipHex)); Assert.assertFalse(ipUtils.isBinaryIpAddress(ipOct)); Assert.assertTrue(ipUtils.isBinaryIpAddress(ipBin)); Assert.assertFalse(ipUtils.isBinaryIpAddress(ipNum)); }
public boolean isBinaryIpAddress(String ip) { return BIN_PATTERN.matcher(ip).matches(); }
IpUtils { public boolean isBinaryIpAddress(String ip) { return BIN_PATTERN.matcher(ip).matches(); } }
IpUtils { public boolean isBinaryIpAddress(String ip) { return BIN_PATTERN.matcher(ip).matches(); }  }
IpUtils { public boolean isBinaryIpAddress(String ip) { return BIN_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 isBinaryIpAddress(String ip) { return BIN_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);  }