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 | Class and Description |
---|---|
class |
IPAddressNetwork<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends InetAddress>
Represents a network of addresses of a single IP version providing a collection of standard addresses components for that version, such as masks and loopbacks.
|
class |
IPAddressNetwork<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends InetAddress>
Represents a network of addresses of a single IP version providing a collection of standard addresses components for that version, such as masks and loopbacks.
|
static class |
IPAddressNetwork.IPAddressCreator<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends InetAddress> |
static class |
IPAddressNetwork.IPAddressCreator<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends InetAddress> |
Modifier and Type | Method and Description |
---|---|
abstract IPAddressSection |
IPAddressSection.adjustPrefixBySegment(boolean nextSegment) |
IPAddressSection |
IPAddressSection.adjustPrefixBySegment(boolean nextSegment,
boolean zeroed) |
abstract IPAddressSection |
IPAddressSection.adjustPrefixLength(int adjustment) |
abstract IPAddressSection |
IPAddressSection.adjustPrefixLength(int adjustment,
boolean zeroed) |
abstract IPAddressSection |
IPAddressSection.applyPrefixLength(int networkPrefixLength)
Deprecated.
|
IPAddressSection |
IPAddressSection.assignMinPrefixForBlock()
Constructs an equivalent address section with the smallest CIDR prefix possible (largest network),
such that the range of values are a set of subnet blocks for that prefix.
|
IPAddressSection |
IPAddressSection.assignPrefixForSingleBlock()
Returns the equivalent CIDR address section with a prefix length for which the subnet block for that prefix matches the range of values in this section.
|
abstract IPAddressSection |
IPAddressSection.coverWithPrefixBlock() |
IPAddressSection |
IPAddressSection.getHostMask() |
IPAddressSection |
IPAddressSegmentSeries.getHostSection()
Returns the host section of the series.
|
IPAddressSection |
IPAddressSegmentSeries.getHostSection(int networkPrefixLength)
Returns the host section of the address as indicated by the network prefix length provided.
|
abstract IPAddressSection |
IPAddressSection.getLower() |
abstract IPAddressSection |
IPAddressSection.getLowerNonZeroHost() |
IPAddressSection |
IPAddressSection.getNetworkMask() |
IPAddressSection |
IPAddressSegmentSeries.getNetworkSection()
Returns the network section of the series if the series has a CIDR network prefix length,
otherwise it returns the entire series as a prefixed series with prefix matching the address bit length.
|
IPAddressSection |
IPAddressSegmentSeries.getNetworkSection(int networkPrefixLength)
Returns the network section of the series.
|
IPAddressSection |
IPAddressSegmentSeries.getNetworkSection(int networkPrefixLength,
boolean withPrefixLength)
Returns the network section of the series.
|
IPAddressSection |
IPAddress.getSection()
Returns the address as an address section comprising all segments in the address.
|
IPAddressSection |
IPAddressSegmentSeries.getSection() |
IPAddressSection |
IPAddress.getSection(int index) |
IPAddressSection |
IPAddressSegmentSeries.getSection(int index) |
abstract IPAddressSection |
IPAddressSection.getSection(int index) |
IPAddressSection |
IPAddress.getSection(int index,
int endIndex) |
IPAddressSection |
IPAddressSegmentSeries.getSection(int index,
int endIndex) |
abstract IPAddressSection |
IPAddressSection.getSection(int index,
int endIndex) |
abstract IPAddressSection |
IPAddressSection.getUpper() |
abstract IPAddressSection |
IPAddressSection.increment(long increment) |
abstract IPAddressSection |
IPAddressSection.incrementBoundary(long increment) |
abstract IPAddressSection |
IPAddressSection.removePrefixLength()
Deprecated.
|
abstract IPAddressSection |
IPAddressSection.removePrefixLength(boolean zeroed)
Deprecated.
|
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) |
abstract IPAddressSection |
IPAddressSection.setPrefixLength(int prefixLength,
boolean zeroed,
boolean zeroHostIsBlock)
Sets the prefix length while allowing the caller to control whether bits moved in or out of the prefix become zero,
and whether a zero host for the new prefix bits can be translated into a prefix block.
|
abstract IPAddressSection |
IPAddressSection.toMaxHost() |
abstract IPAddressSection |
IPAddressSection.toMaxHost(int prefixLength) |
abstract IPAddressSection |
IPAddressSection.toPrefixBlock() |
abstract IPAddressSection |
IPAddressSection.toPrefixBlock(int networkPrefixLength) |
abstract IPAddressSection |
IPAddressSection.toZeroHost() |
abstract IPAddressSection |
IPAddressSection.toZeroHost(int prefixLength) |
abstract IPAddressSection |
IPAddressSection.toZeroNetwork() |
abstract IPAddressSection |
IPAddressSection.withoutPrefixLength() |
Modifier and Type | Method and Description |
---|---|
abstract Iterator<? extends IPAddressSection> |
IPAddressSection.blockIterator(int segmentCount) |
abstract AddressComponentSpliterator<? extends IPAddressSection> |
IPAddressSection.blockSpliterator(int segmentCount) |
abstract Stream<? extends IPAddressSection> |
IPAddressSection.blockStream(int segmentCount) |
abstract Iterable<? extends IPAddressSection> |
IPAddressSection.getIterable() |
abstract Iterator<? extends IPAddressSection> |
IPAddressSection.iterator() |
abstract Iterator<? extends IPAddressSection> |
IPAddressSection.nonZeroHostIterator() |
abstract Iterator<? extends IPAddressSection> |
IPAddressSection.prefixBlockIterator() |
abstract AddressComponentSpliterator<? extends IPAddressSection> |
IPAddressSection.prefixBlockSpliterator() |
abstract Stream<? extends IPAddressSection> |
IPAddressSection.prefixBlockStream() |
abstract Iterator<? extends IPAddressSection> |
IPAddressSection.prefixIterator() |
abstract AddressComponentSpliterator<? extends IPAddressSection> |
IPAddressSection.prefixSpliterator() |
abstract Stream<? extends IPAddressSection> |
IPAddressSection.prefixStream() |
Iterator<? extends IPAddressSection> |
IPAddressSection.sequentialBlockIterator() |
AddressComponentSpliterator<? extends IPAddressSection> |
IPAddressSection.sequentialBlockSpliterator() |
Stream<? extends IPAddressSection> |
IPAddressSection.sequentialBlockStream() |
abstract AddressComponentSpliterator<? extends IPAddressSection> |
IPAddressSection.spliterator() |
abstract Stream<? extends IPAddressSection> |
IPAddressSection.stream() |
Modifier and Type | Method and Description |
---|---|
boolean |
IPAddressSection.containsNonZeroHosts(IPAddressSection other)
Returns whether this address contains the non-zero host addresses in other.
|
boolean |
IPAddressSection.matchesWithMask(IPAddressSection other,
IPAddressSection mask)
Applies the mask to this address section and then compares values with the given address section
|
abstract boolean |
IPAddressSection.prefixContains(IPAddressSection other)
Returns whether the prefix of this address contains all values of the same bits in the given address or subnet
|
Modifier and Type | Class and Description |
---|---|
class |
IPv4AddressSection
A section of an IPv4Address.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IPv4AddressSection.matchesWithMask(IPAddressSection other,
IPAddressSection mask) |
boolean |
IPv4AddressSection.prefixContains(IPAddressSection other) |
Modifier and Type | Class and Description |
---|---|
class |
IPv6AddressSection
A section of an IPv6Address.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IPv6AddressSection.matchesWithMask(IPAddressSection other,
IPAddressSection mask) |
boolean |
IPv6AddressSection.prefixContains(IPAddressSection o) |