| Package | Description |
|---|---|
| inet.ipaddr |
Base classes for IP addresses and generic addresses.
|
| inet.ipaddr.format |
Base classes for generic representations of address divisions and groupings of address divisions.
|
| inet.ipaddr.ipv4 |
Classes for IPv4
|
| inet.ipaddr.ipv6 |
Classes for IPv6
|
| Modifier and Type | Method and Description |
|---|---|
IPAddressSeqRange |
IPAddressString.getSequentialRange()
Returns the range of sequential addresses from the lowest address specified in this address string to the highest.
|
IPAddressSeqRange |
IPAddressSeqRange.intersect(IPAddressSeqRange other)
Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.
|
static IPAddressSeqRange[] |
IPAddressSeqRange.join(IPAddressSeqRange... ranges)
Joins the given ranges into the fewest number of ranges.
|
IPAddressSeqRange |
IPAddressSeqRange.join(IPAddressSeqRange other)
If this range overlaps with the given range,
or if the highest value of the lower range is one below the lowest value of the higher range,
then the two are joined into a new larger range that is returned.
|
abstract IPAddressSeqRange |
IPAddress.spanWithRange(IPAddress other)
Produces an IPAddressRange instance that spans this subnet to the given subnet.
|
IPAddressSeqRange[] |
IPAddressSeqRange.subtract(IPAddressSeqRange other)
Subtracts the given range from this range, to produce either zero, one, or two address ranges that contain the addresses in this range and not in the given range.
|
abstract IPAddressSeqRange |
IPAddress.toSequentialRange()
Creates a sequential range instance from the lowest and highest addresses in this subnet
|
IPAddressSeqRange |
IPAddressString.toSequentialRange()
Returns the range of sequential addresses from the lowest address specified in this address string to the highest.
|
abstract IPAddressSeqRange |
IPAddress.toSequentialRange(IPAddress other)
Creates a sequential range instance from this and the given address,
spanning from the lowest to the highest addresses in the two subnets
If the other address is a different version than this, then the default conversion is applied to the other address first using
IPAddress.toIPv4() or IPAddress.toIPv6() |
| Modifier and Type | Method and Description |
|---|---|
abstract AddressComponentRangeSpliterator<? extends IPAddressSeqRange,? extends IPAddress> |
IPAddressSeqRange.prefixBlockSpliterator(int prefLength) |
java.util.Iterator<? extends IPAddressSeqRange> |
IPAddressSeqRange.prefixIterator(int prefixLength)
Iterates through the range of prefixes in this range instance using the given prefix length.
|
abstract AddressComponentSpliterator<? extends IPAddressSeqRange> |
IPAddressSeqRange.prefixSpliterator(int prefLength) |
abstract java.util.stream.Stream<? extends IPAddressSeqRange> |
IPAddressSeqRange.prefixStream(int prefLength) |
abstract AddressComponentRangeSpliterator<? extends IPAddressSeqRange,? extends IPAddress> |
IPAddressSeqRange.spliterator() |
| Modifier and Type | Method and Description |
|---|---|
int |
AddressComparator.compare(IPAddressSeqRange one,
IPAddressSeqRange two) |
boolean |
IPAddress.contains(IPAddressSeqRange other) |
boolean |
IPAddressSeqRange.contains(IPAddressSeqRange other) |
IPAddressSeqRange |
IPAddressSeqRange.intersect(IPAddressSeqRange other)
Returns the intersection of this range with the given range, a range which includes those addresses in both this and the given rqnge.
|
boolean |
IPAddressSeqRange.isMore(IPAddressSeqRange other) |
static IPAddressSeqRange[] |
IPAddressSeqRange.join(IPAddressSeqRange... ranges)
Joins the given ranges into the fewest number of ranges.
|
IPAddressSeqRange |
IPAddressSeqRange.join(IPAddressSeqRange other)
If this range overlaps with the given range,
or if the highest value of the lower range is one below the lowest value of the higher range,
then the two are joined into a new larger range that is returned.
|
boolean |
IPAddressSeqRange.overlaps(IPAddressSeqRange other) |
IPAddressSeqRange[] |
IPAddressSeqRange.subtract(IPAddressSeqRange other)
Subtracts the given range from this range, to produce either zero, one, or two address ranges that contain the addresses in this range and not in the given range.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IPAddressRange.contains(IPAddressSeqRange other)
Returns whether this range contains all addresses in the given sequential range
|
| Modifier and Type | Class and Description |
|---|---|
class |
IPv4AddressSeqRange |
| Modifier and Type | Method and Description |
|---|---|
IPv4AddressSeqRange |
IPv4AddressSeqRange.intersect(IPAddressSeqRange other) |
IPv4AddressSeqRange |
IPv4AddressSeqRange.join(IPAddressSeqRange other) |
IPv4AddressSeqRange[] |
IPv4AddressSeqRange.subtract(IPAddressSeqRange other) |
| Modifier and Type | Class and Description |
|---|---|
class |
IPv6AddressSeqRange |
| Modifier and Type | Method and Description |
|---|---|
IPv6AddressSeqRange |
IPv6AddressSeqRange.intersect(IPAddressSeqRange other) |
IPv6AddressSeqRange |
IPv6AddressSeqRange.join(IPAddressSeqRange other) |
IPv6AddressSeqRange[] |
IPv6AddressSeqRange.subtract(IPAddressSeqRange other) |