@Test public void testComparisonIPv6() { Ip6Address addr1, addr2, addr3, addr4; addr1 = Ip6Address.valueOf("1111:2222:3333:4444:5555:6666:7777:8888"); addr2 = Ip6Address.valueOf("1111:2222:3333:4444:5555:6666:7777:8888"); addr3 = Ip6Address.valueOf("1111:2222:3333:4444:5555:6666:7777:8887"); addr4 = Ip6Address.valueOf("1111:2222:3333:4444:5555:6666:7777:8889"); assertTrue(addr1.compareTo(addr2) == 0); assertTrue(addr1.compareTo(addr3) > 0); assertTrue(addr1.compareTo(addr4) < 0); addr1 = Ip6Address.valueOf("ffff:2222:3333:4444:5555:6666:7777:8888"); addr2 = Ip6Address.valueOf("ffff:2222:3333:4444:5555:6666:7777:8888"); addr3 = Ip6Address.valueOf("ffff:2222:3333:4444:5555:6666:7777:8887"); addr4 = Ip6Address.valueOf("ffff:2222:3333:4444:5555:6666:7777:8889"); assertTrue(addr1.compareTo(addr2) == 0); assertTrue(addr1.compareTo(addr3) > 0); assertTrue(addr1.compareTo(addr4) < 0); addr1 = Ip6Address.valueOf("ffff:2222:3333:4444:5555:6666:7777:8888"); addr2 = Ip6Address.valueOf("ffff:2222:3333:4444:5555:6666:7777:8888"); addr3 = Ip6Address.valueOf("ffff:2222:3333:4443:5555:6666:7777:8888"); addr4 = Ip6Address.valueOf("ffff:2222:3333:4445:5555:6666:7777:8888"); assertTrue(addr1.compareTo(addr2) == 0); assertTrue(addr1.compareTo(addr3) > 0); assertTrue(addr1.compareTo(addr4) < 0); }
public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); }
Ip6Address extends IpAddress { public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); } }
Ip6Address extends IpAddress { public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); } private  Ip6Address(byte[] value); }
Ip6Address extends IpAddress { public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); } private  Ip6Address(byte[] value); static Ip6Address valueOf(byte[] value); static Ip6Address valueOf(byte[] value, int offset); static Ip6Address valueOf(InetAddress inetAddress); static Ip6Address valueOf(String value); static Ip6Address makeMaskPrefix(int prefixLength); static Ip6Address makeMaskedAddress(final Ip6Address address,
                                               int prefixLength); }
Ip6Address extends IpAddress { public static Ip6Address valueOf(byte[] value) { return new Ip6Address(value); } private  Ip6Address(byte[] value); static Ip6Address valueOf(byte[] value); static Ip6Address valueOf(byte[] value, int offset); static Ip6Address valueOf(InetAddress inetAddress); static Ip6Address valueOf(String value); static Ip6Address makeMaskPrefix(int prefixLength); static Ip6Address makeMaskedAddress(final Ip6Address address,
                                               int prefixLength); static final IpAddress.Version VERSION; static final int BYTE_LENGTH; static final int BIT_LENGTH; }