Inet4Network { static long addressToLong(Inet4Address address) { return InetAddresses.coerceToInteger(address) & 0xffffffffL; } private  Inet4Network(Inet4Address address, int bits); boolean containsAddress(Inet4Address address); @Override String toString(); @Override @SuppressWarnings("RedundantIfStatement") boolean equals(Object o); @Override int hashCode(); @SuppressWarnings("StringSplitter") static Inet4Network fromCidr(String cidr);  }
@Test public void testAddressToLong() { assertAddressToLong("0.0.0.0", 0L); assertAddressToLong("255.255.255.255", 4294967295L); assertAddressToLong("8.8.8.8", 134744072L); assertAddressToLong("202.12.128.0", 3389816832L); assertAddressToLong("202.12.128.254", 3389817086L); }