Package | Description |
---|---|
inet.ipaddr | |
inet.ipaddr.ipv4 | |
inet.ipaddr.ipv6 |
Modifier and Type | Method and Description |
---|---|
static IPAddressString |
IPAddressNetwork.getPrefix(int networkPrefixLength) |
IPAddress |
IPAddressString.toAddress()
Produces the
IPAddress corresponding to this IPAddressString. |
IPAddress |
IPAddressString.toAddress(IPAddress.IPVersion version)
Produces the
IPAddress of the specified address version corresponding to this IPAddressString. |
abstract IPAddressSegment |
IPAddressSegment.toMaskedSegment(IPAddressSegment maskSegment,
java.lang.Integer segmentPrefixLength)
returns a new segment masked by the given mask
This method applies the mask first to every address in the range, and it does not preserve any existing prefix.
|
abstract IPAddressSection |
IPAddressSection.toSubnet(int networkPrefixLength)
Creates a subnet address using the given CIDR prefix bits.
|
abstract IPAddress |
IPAddress.toSubnet(IPAddress mask)
Creates a subnet address using the given mask.
|
abstract IPAddress |
IPAddress.toSubnet(IPAddress mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|
abstract IPAddressSection |
IPAddressSection.toSubnet(IPAddressSection mask)
Creates a subnet address using the given mask.
|
abstract IPAddressSection |
IPAddressSection.toSubnet(IPAddressSection mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|
static void |
IPAddressString.validateNetworkPrefix(IPAddress.IPVersion ipVersion,
int networkPrefixLength,
boolean allowPrefixesBeyondAddressSize) |
static int |
IPAddressString.validateNetworkPrefixLength(IPAddress.IPVersion ipVersion,
java.lang.CharSequence networkPrefixLength)
Validates that the string has the format "/x" for a valid prefix length x.
|
Modifier and Type | Method and Description |
---|---|
IPv4AddressSegment |
IPv4AddressSegment.toMaskedSegment(IPAddressSegment maskSegment,
java.lang.Integer segmentPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.toSubnet(int networkPrefixLength) |
IPv4Address |
IPv4Address.toSubnet(int networkPrefixLength) |
IPv4Address |
IPv4Address.toSubnet(IPAddress mask)
Creates a subnet address using the given mask.
|
IPv4Address |
IPv4Address.toSubnet(IPAddress mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|
IPv4AddressSection |
IPv4AddressSection.toSubnet(IPAddressSection mask)
Creates a subnet address using the given mask.
|
IPv4AddressSection |
IPv4AddressSection.toSubnet(IPAddressSection mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask and prefix length.
|
Modifier and Type | Method and Description |
---|---|
static IPv6AddressSegment |
IPv6AddressSegment.join(IPv4AddressSegment one,
IPv4AddressSegment two,
int upperRangeLower,
int upperRangeUpper,
int lowerRangeLower,
int lowerRangeUpper,
java.lang.Integer segmentPrefixLength) |
static IPv6Address |
IPv6Address.toIPv4Mapped(IPv4Address addr) |
IPv6AddressSegment |
IPv6AddressSegment.toMaskedSegment(IPAddressSegment maskSegment,
java.lang.Integer segmentPrefixLength) |
IPv6AddressSection |
IPv6AddressSection.toSubnet(int networkPrefixLength) |
IPv6Address |
IPv6Address.toSubnet(int networkPrefixLength) |
IPv6Address |
IPv6Address.toSubnet(IPAddress mask)
Creates a subnet address using the given mask.
|
IPv6Address |
IPv6Address.toSubnet(IPAddress mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|
IPv6AddressSection |
IPv6AddressSection.toSubnet(IPAddressSection mask)
Creates a subnet address using the given mask.
|
IPv6AddressSection |
IPv6AddressSection.toSubnet(IPAddressSection mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|
Constructor and Description |
---|
IPv6Address(IPv6AddressSection section) |