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 |
IPAddressSeqRange.extend(IPAddressRange other)
Extend this sequential range to include all address in the given range, which can be an IPAddress or IPAddressSeqRange.
|
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 range.
|
static IPAddressSeqRange[] |
IPAddressSeqRange.join(IPAddressSeqRange... ranges)
Joins the given ranges into the fewest number of ranges.
|
IPAddressSeqRange |
IPAddressSeqRange.join(IPAddressSeqRange other)
Joins two ranges if they are contiguous ranges.
|
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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract AddressComponentRangeSpliterator<? extends IPAddressSeqRange,? extends IPAddress> |
IPAddressSeqRange.prefixBlockSpliterator(int prefLength) |
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 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 otherRange) |
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 range.
|
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)
Joins two ranges if they are contiguous ranges.
|
boolean |
IPAddress.overlaps(IPAddressSeqRange other)
Returns true if this address overlaps with the given address or subnet
|
boolean |
IPAddressSeqRange.overlaps(IPAddressSeqRange other)
Returns true if this sequential range overlaps with the given sequential range.
|
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 |
---|---|
IPAddressSeqRange |
IPAddressRange.toSequentialRange()
Converts to a sequential range from the lowest and highest addresses in this range, returns "this" if one already
|
Modifier and Type | Method and Description |
---|---|
boolean |
IPAddressRange.contains(IPAddressSeqRange other)
Returns whether this range contains all addresses in the given sequential range
|
boolean |
IPAddressRange.overlaps(IPAddressSeqRange other)
Returns whether this range overlaps with the given sequential range
|
Modifier and Type | Class and Description |
---|---|
class |
IPv4AddressSeqRange
Represents an arbitrary range of IPv4 addresses.
|
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
Represents an arbitrary range of IPv6 addresses.
|
Modifier and Type | Method and Description |
---|---|
IPv6AddressSeqRange |
IPv6AddressSeqRange.intersect(IPAddressSeqRange other) |
IPv6AddressSeqRange |
IPv6AddressSeqRange.join(IPAddressSeqRange other) |
IPv6AddressSeqRange[] |
IPv6AddressSeqRange.subtract(IPAddressSeqRange other) |