Package | Description |
---|---|
inet.ipaddr | |
inet.ipaddr.ipv4 | |
inet.ipaddr.ipv6 |
Modifier and Type | Method and Description |
---|---|
abstract IPAddressSection |
IPAddress.getHostSection()
Generates the host section of the address.
|
abstract IPAddressSection |
IPAddressSection.getHostSection(int networkPrefixLength) |
abstract IPAddressSection |
IPAddress.getHostSection(int networkPrefixLength)
Generates the host section of the address.
|
abstract IPAddressSection |
IPAddressSection.getLowerSection()
If this represents an address section with ranging values, returns an address section representing the lower values of the range
If this represents an address section with a single value in each segment, returns this.
|
abstract IPAddressSection |
IPAddress.getNetworkSection()
Generates the network section of the address if the address is a CIDR prefix, otherwise it generates the entire address as a prefixed address with prefix matching the address bit length.
|
abstract IPAddressSection |
IPAddressSection.getNetworkSection(int networkPrefixLength) |
IPAddressSection |
IPAddress.getNetworkSection(int networkPrefixLength)
Generates the network section of the address.
|
abstract IPAddressSection |
IPAddressSection.getNetworkSection(int networkPrefixLength,
boolean withPrefixLength) |
abstract IPAddressSection |
IPAddress.getNetworkSection(int networkPrefixLength,
boolean withPrefixLength)
Generates the network section of the address.
|
IPAddressSection |
IPAddress.getSection()
Returns the address as an address section comprising all segments in the address.
|
abstract IPAddressSection |
IPAddressSection.getUpperSection()
If this represents an address section with ranging values, returns an address section representing the upper values of the range
If this represents an address section with a single value in each segment, returns this.
|
abstract IPAddressSection[] |
IPAddressSection.subtract(IPAddressSection other)
Subtract the give subnet from this subnet, returning an array of sections for the result (the subnets will not be contiguous so an array is required).
|
IPAddressSection |
IPAddressSection.toMinimalPrefixed()
Constructs an equivalent address section with the smallest CIDR prefix length possible (largest network),
such that the address represents the exact same range of addresses.
|
IPAddressSection |
IPAddressSection.toPrefixedEquivalent()
Returns the CIDR address section for which the range of addresses
in this section is specified using just a single value and a prefix length in the returned section.
|
abstract IPAddressSection |
IPAddressSection.toSubnet(int networkPrefixLength)
Creates a subnet address using the given CIDR prefix bits.
|
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.
|
IPAddressSection |
IPAddressSection.toSupernet()
Return an address section for the network encompassing this address section,
with the network portion of the returned address extending to the furthest segment boundary
located entirely within but not matching the network portion of this address,
unless the network portion has no bits in which case the same address is returned.
|
IPAddressSection |
IPAddressSection.toSupernet(java.lang.Integer prefixLengthDecrement)
Return an address section for the network encompassing this address section.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.Iterator<? extends IPAddressSection> |
IPAddressSection.sectionIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
IPAddressSection.contains(IPAddressSection other) |
boolean |
IPAddressSection.isContainedBy(IPAddressSection other) |
boolean |
IPAddressSection.isMaskCompatibleWithRange(IPAddressSection mask,
java.lang.Integer networkPrefixLength)
Returns whether the given mask and prefix combination can be used to generate a subnet.
|
abstract IPAddressSection[] |
IPAddressSection.subtract(IPAddressSection other)
Subtract the give subnet from this subnet, returning an array of sections for the result (the subnets will not be contiguous so an array is required).
|
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.
|
Constructor and Description |
---|
IPAddressTypeException(IPAddressSection one,
int prefixLength,
java.lang.String key) |
IPAddressTypeException(IPAddressSection one,
IPAddressSection two,
java.lang.String key) |
IPAddressTypeException(IPAddressSection one,
java.lang.String key) |
Modifier and Type | Class and Description |
---|---|
class |
IPv4AddressSection |
Modifier and Type | Method and Description |
---|---|
boolean |
IPv4AddressSection.contains(IPAddressSection other) |
IPv4AddressSection[] |
IPv4AddressSection.subtract(IPAddressSection other) |
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 | Class and Description |
---|---|
class |
IPv6AddressSection |
Modifier and Type | Method and Description |
---|---|
boolean |
IPv6AddressSection.contains(IPAddressSection other) |
IPv6AddressSection[] |
IPv6AddressSection.subtract(IPAddressSection other) |
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.
|