Package | Description |
---|---|
inet.ipaddr | |
inet.ipaddr.ipv4 | |
inet.ipaddr.ipv6 |
Modifier and Type | Method and Description |
---|---|
abstract IPAddressSection |
IPAddressSection.applyPrefixLength(int networkPrefixLength)
Applies the given network prefix bit length.
|
abstract IPAddress |
IPAddress.bitwiseOr(IPAddress mask)
Does the bitwise disjunction with this address.
|
abstract IPAddress |
IPAddress.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength)
Does the bitwise disjunction with this address.
|
static IPAddressString |
IPAddressNetwork.getPrefix(int networkPrefixLength) |
abstract IPAddress |
IPAddress.mask(IPAddress mask)
Applies the given mask to all addresses represented by this IPAddress.
|
abstract IPAddress |
IPAddress.maskNetwork(IPAddress mask,
int networkPrefixLength)
Applies the given mask up until the given prefix length to all addresses represented by this IPAddress.
|
MACAddress |
MACAddressString.toAddress()
Produces the
MACAddress corresponding to this MACAddressString. |
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. |
IPAddress |
IPAddressString.toHostAddress()
If this address string was constructed from a host address with prefix,
then this provides just the host address, rather than the subnet block of addresses
provided by
IPAddressString.toAddress() that incorporates the prefix. |
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.
|
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 |
---|---|
IPv4Address |
IPv4Address.applyPrefixLength(int networkPrefixLength) |
IPv4Address |
IPv4Address.bitwiseOr(IPAddress mask) |
IPv4AddressSection |
IPv4AddressSection.bitwiseOr(IPv4AddressSection mask)
Does the bitwise disjunction with this address.
|
IPv4Address |
IPv4Address.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.bitwiseOrNetwork(IPv4AddressSection mask,
int networkPrefixLength)
Does the bitwise disjunction with this address.
|
IPv4Address |
IPv4Address.mask(IPAddress mask) |
IPv4AddressSection |
IPv4AddressSection.mask(IPv4AddressSection mask) |
IPv4Address |
IPv4Address.maskNetwork(IPAddress mask,
int networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.maskNetwork(IPv4AddressSection mask,
int networkPrefixLength)
Applies the given mask to the network section of the address as indicated by the given prefix length.
|
IPv4AddressSegment |
IPv4AddressSegment.toMaskedSegment(IPAddressSegment maskSegment,
java.lang.Integer segmentPrefixLength) |
Modifier and Type | Method and Description |
---|---|
IPv6Address |
IPv6Address.applyPrefixLength(int networkPrefixLength) |
IPv6Address |
IPv6Address.bitwiseOr(IPAddress mask) |
IPv6AddressSection |
IPv6AddressSection.bitwiseOr(IPv6AddressSection mask)
Does the bitwise disjunction with this address.
|
IPv6Address |
IPv6Address.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength) |
IPv6AddressSection |
IPv6AddressSection.bitwiseOrNetwork(IPv6AddressSection mask,
int networkPrefixLength)
Does the bitwise disjunction with this address.
|
static IPv6AddressSegment |
IPv6AddressSegment.join(IPv4AddressSegment one,
IPv4AddressSegment two,
int upperRangeLower,
int upperRangeUpper,
int lowerRangeLower,
int lowerRangeUpper,
java.lang.Integer segmentPrefixLength) |
IPv6Address |
IPv6Address.mask(IPAddress mask) |
IPv6AddressSection |
IPv6AddressSection.mask(IPv6AddressSection mask) |
IPv6Address |
IPv6Address.maskNetwork(IPAddress mask,
int networkPrefixLength) |
IPv6AddressSection |
IPv6AddressSection.maskNetwork(IPv6AddressSection mask,
int networkPrefixLength)
Applies the given mask to the network section of the address as indicated by the given prefix length.
|
static IPv6Address |
IPv6Address.toIPv4Mapped(IPv4Address addr) |
IPv6AddressSegment |
IPv6AddressSegment.toMaskedSegment(IPAddressSegment maskSegment,
java.lang.Integer segmentPrefixLength) |
Constructor and Description |
---|
IPv6Address(IPv6AddressSection section) |