public final class IPv6 extends IP<Inet6Address> implements Comparable<IPv6>
Inet6Address
that is comparable to allow its use in other data objects such as TreeMap or
Range| Constructor and Description |
|---|
IPv6(Inet6Address address) |
| Modifier and Type | Method and Description |
|---|---|
static Range<IPv6> |
cidrRange(String cidr)
Parses the provided CIDR string and produces a closed
Range encapsulating all IPv6 addresses between
the network and broadcast addresses in the subnet represented by the CIDR. |
int |
compareTo(IPv6 o) |
static DiscreteDomain<IPv6> |
discreteDomain() |
static IPv6 |
fromString(String addr)
Generates a new IPv6 instance from the provided address.
|
equals, getAddress, hashCode, toByteArray, toStringpublic IPv6(Inet6Address address)
public int compareTo(IPv6 o)
compareTo in interface Comparable<IPv6>public static IPv6 fromString(String addr)
InetAddress.getByName().
If the provided string is an ipv6 "mapped" address ('ffff:x.x.x.x' this method will still generate a valid IPv6
instance.public static Range<IPv6> cidrRange(String cidr)
Range encapsulating all IPv6 addresses between
the network and broadcast addresses in the subnet represented by the CIDR.public static DiscreteDomain<IPv6> discreteDomain()
Copyright © 2018 Calrissian. All rights reserved.