Package | Description |
---|---|
inet.ipaddr |
Base classes for IP addresses and generic addresses.
|
inet.ipaddr.ipv4 |
Classes for IPv4
|
inet.ipaddr.ipv6 |
Classes for IPv6
|
Modifier and Type | Method and Description |
---|---|
abstract IPAddress |
IPAddress.bitwiseOr(IPAddress mask)
Equivalent to calling
IPAddress.bitwiseOr(IPAddress, boolean) with the second argument as false. |
abstract IPAddress |
IPAddress.bitwiseOr(IPAddress mask,
boolean retainPrefix)
Does the bitwise disjunction with this address.
|
abstract IPAddress |
IPAddress.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength)
Does the bitwise disjunction with this address.
|
abstract IPAddress |
IPAddress.coverWithPrefixBlock(IPAddress other)
Returns the minimal-size prefix block that covers all the addresses spanning from this subnet to the given subnet.
|
abstract IPAddress |
IPAddress.intersect(IPAddress other)
Produces the subnet whose addresses are found in both this and the given subnet argument, or null if no such addresses.
|
abstract IPAddress |
IPAddress.mask(IPAddress mask)
Equivalent to calling
IPAddress.mask(IPAddress, boolean) with the second argument as false. |
abstract IPAddress |
IPAddress.mask(IPAddress mask,
boolean retainPrefix)
Applies the given mask to all addresses represented by this IPAddress.
|
abstract IPAddress |
IPAddress.maskNetwork(IPAddress mask,
int networkPrefixLength)
Applies the given mask to all addresses represented by this IPAddress while also applying the given prefix length at the same time.
|
abstract IPAddress[] |
IPAddress.mergeToPrefixBlocks(IPAddress... addresses)
Merges this with the list of addresses to produce the smallest list of prefix blocks.
|
abstract IPAddress[] |
IPAddress.mergeToSequentialBlocks(IPAddress... addresses)
Merges this with the list of subnets to produce the smallest list of block subnets that are sequential.
|
abstract IPAddress[] |
IPAddress.spanWithPrefixBlocks(IPAddress other)
Produces the list of prefix block subnets that span from this subnet to the given subnet.
|
abstract IPAddressSeqRange |
IPAddress.spanWithRange(IPAddress other)
Produces an IPAddressRange instance that spans this subnet to the given subnet.
|
abstract IPAddress[] |
IPAddress.spanWithSequentialBlocks(IPAddress other)
Produces a list of sequential block subnets that span all values from this subnet to the given subnet.
|
abstract IPAddress[] |
IPAddress.subtract(IPAddress other)
Subtract the given subnet from this subnet, returning an array of subnets for the result (the subnets will not be contiguous so an array is required).
|
abstract IPAddressSeqRange |
IPAddress.toSequentialRange(IPAddress other)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IPv4Address |
IPv4Address.bitwiseOr(IPAddress mask) |
IPv4Address |
IPv4Address.bitwiseOr(IPAddress mask,
boolean retainPrefix) |
IPv4Address |
IPv4Address.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength) |
IPv4Address |
IPv4Address.coverWithPrefixBlock(IPAddress other) |
IPv4AddressSection |
IPv4AddressSection.coverWithPrefixBlock(IPv4AddressSection other) |
IPv4Address |
IPv4Address.intersect(IPAddress other) |
IPv4Address |
IPv4Address.mask(IPAddress mask) |
IPv4Address |
IPv4Address.mask(IPAddress mask,
boolean retainPrefix) |
IPv4Address |
IPv4Address.maskNetwork(IPAddress mask,
int networkPrefixLength) |
IPv4Address[] |
IPv4Address.mergeToPrefixBlocks(IPAddress... addresses) |
IPv4Address[] |
IPv4Address.mergeToSequentialBlocks(IPAddress... addresses) |
IPv4Address[] |
IPv4Address.spanWithPrefixBlocks(IPAddress other) |
IPv4AddressSeqRange |
IPv4Address.spanWithRange(IPAddress other) |
IPv4AddressSection[] |
IPv4AddressSection.spanWithSequentialBlocks()
Produces an array of blocks that are sequential that cover the same set of sections as this.
|
IPv4Address[] |
IPv4Address.spanWithSequentialBlocks()
Produces an array of blocks that are sequential that cover the same set of addresses as this.
|
IPv4Address[] |
IPv4Address.spanWithSequentialBlocks(IPAddress other) |
IPv4Address[] |
IPv4Address.subtract(IPAddress other) |
Modifier and Type | Method and Description |
---|---|
IPv6Address |
IPv6Address.bitwiseOr(IPAddress mask) |
IPv6Address |
IPv6Address.bitwiseOr(IPAddress mask,
boolean retainPrefix) |
IPv6Address |
IPv6Address.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength) |
IPv6Address |
IPv6Address.coverWithPrefixBlock(IPAddress other) |
IPv6AddressSection |
IPv6AddressSection.coverWithPrefixBlock(IPv6AddressSection other) |
IPv6Address |
IPv6Address.intersect(IPAddress other) |
IPv6Address |
IPv6Address.mask(IPAddress mask) |
IPv6Address |
IPv6Address.mask(IPAddress mask,
boolean retainPrefix) |
IPv6Address |
IPv6Address.maskNetwork(IPAddress mask,
int networkPrefixLength) |
IPv6Address[] |
IPv6Address.mergeToPrefixBlocks(IPAddress... addresses) |
IPv6Address[] |
IPv6Address.mergeToSequentialBlocks(IPAddress... addresses) |
IPv6Address[] |
IPv6Address.spanWithPrefixBlocks(IPAddress other) |
IPv6AddressSeqRange |
IPv6Address.spanWithRange(IPAddress other) |
IPv6Address[] |
IPv6Address.spanWithSequentialBlocks()
Produces an array of blocks that are sequential that cover the same set of addresses as this.
|
IPv6AddressSection[] |
IPv6AddressSection.spanWithSequentialBlocks()
Produces an array of blocks that are sequential that cover the same set of sections as this.
|
IPv6Address[] |
IPv6Address.spanWithSequentialBlocks(IPAddress other) |
IPv6Address[] |
IPv6Address.subtract(IPAddress other) |