Package | Description |
---|---|
inet.ipaddr | |
inet.ipaddr.ipv4 | |
inet.ipaddr.ipv6 |
Modifier and Type | Class and Description |
---|---|
class |
IPAddressTypeNetwork<T extends IPAddress,R extends IPAddressSection,S extends IPAddressSegment>
A network of addresses of a single version (ie bit length) providing a collection of standard addresses and segments for that version, such as masks and loopbacks.
|
Modifier and Type | Method and Description |
---|---|
IPAddressSection |
IPAddressSection.adjustPrefixBySegment(boolean nextSegment) |
abstract IPAddressSection |
IPAddressSection.adjustPrefixLength(int adjustment) |
abstract IPAddressSection |
IPAddressSection.applyPrefixLength(int networkPrefixLength)
Applies the given network prefix bit length.
|
abstract IPAddressSection |
IPAddressNetwork.getHostMaskSection(int networkPrefixLength) |
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.getLower()
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 |
IPAddressNetwork.getNetworkMaskSection(int networkPrefixLength) |
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) |
abstract 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.getSection(int index) |
IPAddressSection |
IPAddress.getSection(int index) |
abstract IPAddressSection |
IPAddressSection.getSection(int index,
int endIndex) |
IPAddressSection |
IPAddress.getSection(int index,
int endIndex) |
abstract IPAddressSection |
IPAddressSection.getUpper()
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.removePrefixLength() |
abstract IPAddressSection |
IPAddressSection.removePrefixLength(boolean zeroed) |
abstract IPAddressSection |
IPAddressSection.reverseBits(boolean perByte) |
abstract IPAddressSection |
IPAddressSection.reverseBytes() |
abstract IPAddressSection |
IPAddressSection.reverseBytesPerSegment() |
abstract IPAddressSection |
IPAddressSection.reverseSegments() |
abstract IPAddressSection |
IPAddressSection.setPrefixLength(int prefixLength) |
abstract IPAddressSection |
IPAddressSection.setPrefixLength(int prefixLength,
boolean zeroed) |
IPAddressSection |
IPAddressSection.toMinPrefixedEquivalent()
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.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Iterable<? extends IPAddressSection> |
IPAddressSection.getIterable() |
abstract java.util.Iterator<? extends IPAddressSection> |
IPAddressSection.iterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
IPAddressSection.contains(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.
|
Constructor and Description |
---|
AddressTypeException(IPAddressSection one,
int prefixLength,
java.lang.String key) |
Modifier and Type | Class and Description |
---|---|
class |
IPv4AddressSection |
Modifier and Type | Class and Description |
---|---|
class |
IPv6AddressSection |