Inet4Network { @Override public String toString() { return InetAddresses.fromInteger((int)start).getHostAddress() + "/" + bits; } 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 testToString() { assertToString("8.0.0.0/8"); assertToString("9.0.0.0/8"); assertToString("8.0.0.0/9"); assertToString("8.8.8.0/24"); assertToString("8.8.8.8/32"); assertToString("255.254.0.0/16"); }