@Test public void testEqualityIPv6() { new EqualsTester() .addEqualityGroup( Ip6Prefix.valueOf("1111:2222:3333:4444::/120"), Ip6Prefix.valueOf("1111:2222:3333:4444::1/120"), Ip6Prefix.valueOf("1111:2222:3333:4444::/120")) .addEqualityGroup( Ip6Prefix.valueOf("1111:2222:3333:4444::/64"), Ip6Prefix.valueOf("1111:2222:3333:4444::/64")) .addEqualityGroup( Ip6Prefix.valueOf("1111:2222:3333:4444::/128"), Ip6Prefix.valueOf("1111:2222:3333:4444::/128")) .addEqualityGroup( Ip6Prefix.valueOf("1111:2222:3333:4445::/64"), Ip6Prefix.valueOf("1111:2222:3333:4445::/64")) .addEqualityGroup( Ip6Prefix.valueOf("::/0"), Ip6Prefix.valueOf("::/0")) .addEqualityGroup( Ip6Prefix.valueOf("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/128"), Ip6Prefix.valueOf("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/128")) .testEquals(); }
public static Ip6Prefix valueOf(byte[] address, int prefixLength) { return new Ip6Prefix(Ip6Address.valueOf(address), prefixLength); }
Ip6Prefix extends IpPrefix { public static Ip6Prefix valueOf(byte[] address, int prefixLength) { return new Ip6Prefix(Ip6Address.valueOf(address), prefixLength); } }
Ip6Prefix extends IpPrefix { public static Ip6Prefix valueOf(byte[] address, int prefixLength) { return new Ip6Prefix(Ip6Address.valueOf(address), prefixLength); } private  Ip6Prefix(Ip6Address address, int prefixLength); }
Ip6Prefix extends IpPrefix { public static Ip6Prefix valueOf(byte[] address, int prefixLength) { return new Ip6Prefix(Ip6Address.valueOf(address), prefixLength); } private  Ip6Prefix(Ip6Address address, int prefixLength); Ip6Address address(); static Ip6Prefix valueOf(byte[] address, int prefixLength); static Ip6Prefix valueOf(Ip6Address address, int prefixLength); static Ip6Prefix valueOf(String address); }
Ip6Prefix extends IpPrefix { public static Ip6Prefix valueOf(byte[] address, int prefixLength) { return new Ip6Prefix(Ip6Address.valueOf(address), prefixLength); } private  Ip6Prefix(Ip6Address address, int prefixLength); Ip6Address address(); static Ip6Prefix valueOf(byte[] address, int prefixLength); static Ip6Prefix valueOf(Ip6Address address, int prefixLength); static Ip6Prefix valueOf(String address); static final IpAddress.Version VERSION; static final int MAX_MASK_LENGTH; }