public final class Ip6Prefix extends IpPrefix
Modifier and Type | Field and Description |
---|---|
static int |
MAX_MASK_LENGTH |
static IpAddress.Version |
VERSION |
IPV4_LINK_LOCAL_PREFIX, IPV4_MULTICAST_PREFIX, IPV6_LINK_LOCAL_PREFIX, IPV6_MULTICAST_PREFIX, MAX_INET_MASK_LENGTH, MAX_INET6_MASK_LENGTH, MULTICAST_RANGE
Modifier and Type | Method and Description |
---|---|
Ip6Address |
address()
Returns the IPv6 address value of the prefix.
|
static Ip6Prefix |
valueOf(byte[] address,
int prefixLength)
Converts a byte array and a prefix length into an IPv6 prefix.
|
static Ip6Prefix |
valueOf(Ip6Address address,
int prefixLength)
Converts an IPv6 address and a prefix length into an IPv6 prefix.
|
static Ip6Prefix |
valueOf(java.lang.String address)
Converts a CIDR (slash) notation string (e.g., "1111:2222::/64")
into an IPv6 prefix.
|
contains, contains, equals, getIp4Prefix, getIp6Prefix, hashCode, isIp4, isIp6, isMulticast, prefixLength, toString, valueOf, valueOf, valueOf, version
public static final IpAddress.Version VERSION
public static final int MAX_MASK_LENGTH
public Ip6Address address()
public static Ip6Prefix valueOf(byte[] address, int prefixLength)
address
- the IPv6 address value stored in network byte orderprefixLength
- the prefix lengthjava.lang.IllegalArgumentException
- if the prefix length value is invalidpublic static Ip6Prefix valueOf(Ip6Address address, int prefixLength)
address
- the IPv6 addressprefixLength
- the prefix lengthjava.lang.IllegalArgumentException
- if the prefix length value is invalidpublic static Ip6Prefix valueOf(java.lang.String address)
address
- an IP prefix in string form (e.g.,"1111:2222::/64")java.lang.IllegalArgumentException
- if the arguments are invalid