public static long ipv4ToLong(String strIP) {
		final Matcher matcher = PatternPool.IPV4.matcher(strIP);
		if (matcher.matches()) {
			return matchAddress(matcher);
		}
//		Validator.validateIpv4(strIP, "Invalid IPv4 address!");
//		final long[] ip = Convert.convert(long[].class, StrUtil.split(strIP, CharUtil.DOT));
//		return (ip[0] << 24) + (ip[1] << 16) + (ip[2] << 8) + ip[3];
		throw new IllegalArgumentException("Invalid IPv4 address!");
	}
@Test
	public void ipv4ToLongWithDefaultTest() {
		final String strIP = "不正确的 IP 地址";
		final long defaultValue = 0L;
		final long ipOfLong = Ipv4Util.ipv4ToLong(strIP, defaultValue);
		assertEquals(ipOfLong, defaultValue);

		final String strIP2 = "255.255.255.255";
		final long defaultValue2 = 0L;
		final long ipOfLong2 = Ipv4Util.ipv4ToLong(strIP2, defaultValue2);
		assertEquals(ipOfLong2, 4294967295L);
	}