Uses of Class
inet.ipaddr.IPAddress
Packages that use IPAddress
Package
Description
Base classes for IP addresses and generic addresses.
Base classes for generic representations of address divisions and groupings of address divisions.
Contains utility classes such as collections, spliterators, and String-writers.
Validation of address strings and creation of address representations from the validated strings.
Classes for IPv4
Classes for IPv6
-
Uses of IPAddress in inet.ipaddr
Classes in inet.ipaddr with type parameters of type IPAddressModifier and TypeClassDescriptionclass
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> Methods in inet.ipaddr that return IPAddressModifier and TypeMethodDescriptionabstract IPAddress
IPAddress.adjustPrefixBySegment
(boolean nextSegment) abstract IPAddress
IPAddress.adjustPrefixBySegment
(boolean nextSegment, boolean zeroed) abstract IPAddress
IPAddress.adjustPrefixLength
(int adjustment) Increases or decreases prefix length by the given increment.abstract IPAddress
IPAddress.adjustPrefixLength
(int adjustment, boolean zeroed) abstract IPAddress
IPAddress.applyPrefixLength
(int networkPrefixLength) Deprecated.HostName.asAddress()
If this represents an ip address, returns that address.HostName.asAddress
(IPAddress.IPVersion version) If this represents an ip address, returns that address.IPAddress.assignMinPrefixForBlock()
Constructs an equivalent address with the smallest CIDR prefix possible (largest network), such that the range of values are a set of subnet blocks for that prefix.IPAddress.assignPrefixForSingleBlock()
Returns the equivalent CIDR address with a prefix length for which the address subnet block matches the range of values in this address.abstract IPAddress
Equivalent to callingbitwiseOr(IPAddress, boolean)
with the second argument as false.abstract IPAddress
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
IPAddressSeqRange.coverWithPrefixBlock()
IPAddressNetwork.IPAddressGenerator.from
(byte[] bytes) IPAddressNetwork.IPAddressGenerator.from
(byte[] bytes, int byteStartIndex, int byteEndIndex) IPAddressNetwork.IPAddressGenerator.from
(byte[] bytes, int byteStartIndex, int byteEndIndex, Integer networkPrefixLength) IPAddressNetwork.IPAddressGenerator.from
(IPAddress.IPVersion version, Address.SegmentValueProvider lowerValueProvider, Address.SegmentValueProvider upperValueProvider, Integer prefixLength) IPAddressNetwork.IPAddressGenerator.from
(InetAddress inetAddress) IPAddressNetwork.IPAddressGenerator.from
(InetAddress inetAddress, Integer prefixLength) IPAddressNetwork.IPAddressGenerator.from
(InterfaceAddress interfaceAddress) HostName.getAddress()
If this represents an ip address, returns that address.IPAddressString.getAddress()
If this represents an ip address, returns that address.IPAddressString.getAddress
(IPAddress.IPVersion version) Similar toIPAddressString.toAddress(inet.ipaddr.IPAddress.IPVersion)
, but returns null rather than throwing an exception with the address is invalid or does not match the supplied version.IPAddressString.getHostAddress()
If this address string was constructed from a host address with prefix length, then this provides just the host address, rather than the address provided byIPAddressString.getAddress()
that incorporates the prefix.IPAddress.getHostMask()
abstract IPAddress
IPAddress.getLower()
IPAddressSeqRange.getLower()
abstract IPAddress
IPAddress.getLowerNonZeroHost()
HostName.getMask()
If a mask was provided with this host name, this returns the resulting mask value.IPAddressString.getMask()
If a mask was provided with this address string, this returns the resulting mask value.IPAddress.getNetworkMask()
abstract IPAddress
IPAddress.getUpper()
IPAddressSeqRange.getUpper()
abstract IPAddress
IPAddress.increment
(long increment) abstract IPAddress
IPAddress.incrementBoundary
(long increment) abstract IPAddress
Produces the subnet whose addresses are found in both this and the given subnet argument, or null if no such addresses.abstract IPAddress
Equivalent to callingmask(IPAddress, boolean)
with the second argument as false.abstract IPAddress
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.IPAddress.removeBitCountPrefixLength()
Removes the prefix length from addresses with a prefix length extending to the end of the address.abstract IPAddress
IPAddress.removePrefixLength()
Deprecated.abstract IPAddress
IPAddress.removePrefixLength
(boolean zeroed) Deprecated.abstract IPAddress
IPAddress.reverseBits
(boolean perByte) abstract IPAddress
IPAddress.reverseBytes()
abstract IPAddress
IPAddress.reverseBytesPerSegment()
abstract IPAddress
IPAddress.reverseSegments()
abstract IPAddress
IPAddress.setPrefixLength
(int prefixLength) abstract IPAddress
IPAddress.setPrefixLength
(int prefixLength, boolean zeroed) abstract IPAddress
IPAddress.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 IPAddress[]
IPAddress.spanWithPrefixBlocks
(IPAddress other) Produces the list of prefix block subnets that span from this subnet to the given subnet.abstract IPAddress[]
IPAddressSeqRange.spanWithPrefixBlocks()
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[]
IPAddressSeqRange.spanWithSequentialBlocks()
abstract IPAddress[]
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).HostName.toAddress()
If this represents an ip address, returns that address.IPAddressString.toAddress()
Produces theIPAddress
corresponding to this IPAddressString.IPAddressString.toAddress
(IPAddress.IPVersion version) Produces theIPAddress
of the specified address version corresponding to this IPAddressString.IPAddressString.toHostAddress()
If this address string was constructed from a string comprising of a host address with prefix length or mask, then this provides just the host address, rather than the address with the prefix or mask applied that is provided byIPAddressString.toAddress()
.abstract IPAddress
IPAddress.toMaxHost()
abstract IPAddress
IPAddress.toMaxHost
(int prefixLength) abstract IPAddress
IPAddress.toPrefixBlock()
Returns the subnet associated with the prefix length of this address.abstract IPAddress
IPAddress.toPrefixBlock
(int networkPrefixLength) abstract IPAddress
IPAddress.toZeroHost()
abstract IPAddress
IPAddress.toZeroHost
(int prefixLength) abstract IPAddress
IPAddress.toZeroNetwork()
abstract IPAddress
IPAddress.withoutPrefixLength()
Methods in inet.ipaddr that return types with arguments of type IPAddressModifier and TypeMethodDescriptionIPAddress.blockIterator
(int segmentCount) abstract AddressComponentSpliterator
<? extends IPAddress> IPAddress.blockSpliterator
(int segmentCount) IPAddress.blockStream
(int segmentCount) IPAddress.getIterable()
IPAddressSeqRange.getIterable()
IPAddress.iterator()
IPAddressSeqRange.iterator()
IPAddress.nonZeroHostIterator()
IPAddress.prefixBlockIterator()
IPAddressSeqRange.prefixBlockIterator
(int prefLength) Iterates through the range of prefix blocks in this range instance using the given prefix length.abstract AddressComponentSpliterator
<? extends IPAddress> IPAddress.prefixBlockSpliterator()
abstract AddressComponentRangeSpliterator
<? extends IPAddressSeqRange, ? extends IPAddress> IPAddressSeqRange.prefixBlockSpliterator
(int prefLength) IPAddress.prefixBlockStream()
IPAddressSeqRange.prefixBlockStream
(int prefLength) IPAddress.prefixIterator()
abstract AddressComponentSpliterator
<? extends IPAddress> IPAddress.prefixSpliterator()
IPAddress.prefixStream()
IPAddress.sequentialBlockIterator()
AddressComponentSpliterator
<? extends IPAddress> IPAddress.sequentialBlockSpliterator()
IPAddress.sequentialBlockStream()
abstract AddressComponentSpliterator
<? extends IPAddress> IPAddress.spliterator()
abstract AddressComponentRangeSpliterator
<? extends IPAddressSeqRange, ? extends IPAddress> IPAddressSeqRange.spliterator()
IPAddress.stream()
IPAddressSeqRange.stream()
Methods in inet.ipaddr with parameters of type IPAddressModifier and TypeMethodDescription<V> V
IPAddress.applyToBounds
(BiFunction<? super IPAddress, ? super IPAddress, V> func, IPAddress... series) Finds the lowest and highest single-valued address from the given addresses and subnets and this one, calling the given BiFunction with the lowest as first argument and the highest as second.abstract IPAddress
Equivalent to callingbitwiseOr(IPAddress, boolean)
with the second argument as false.abstract IPAddress
Does the bitwise disjunction with this address.abstract IPAddress
IPAddress.bitwiseOrNetwork
(IPAddress mask, int networkPrefixLength) Does the bitwise disjunction with this address.boolean
Returns whether this contains all values of the given address or subnetboolean
boolean
IPAddress.containsNonZeroHosts
(IPAddress other) Returns whether this address contains the non-zero host addresses in the other address or subnetabstract 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
Produces the subnet whose addresses are found in both this and the given subnet argument, or null if no such addresses.boolean
IPAddressConverter.DefaultAddressConverter.isIPv4Convertible
(IPAddress address) boolean
IPAddressConverter.isIPv4Convertible
(IPAddress address) returns whether the address is IPv4 or can be converted to IPv4.boolean
IPAddressConverter.DefaultAddressConverter.isIPv6Convertible
(IPAddress address) boolean
IPAddressConverter.isIPv6Convertible
(IPAddress address) returns whether the address is IPv6 or can be converted to IPv6.abstract IPAddress
Equivalent to callingmask(IPAddress, boolean)
with the second argument as false.abstract IPAddress
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.boolean
IPAddress.matchesWithMask
(IPAddress other, IPAddress mask) Applies the mask to this address and then compares values with the given addressabstract 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.boolean
IPAddress.prefixContains
(IPAddress other) Returns whether the prefix of this address contains all values of the same bits in the given address or subnetabstract 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) Deprecated.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[]
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) Creates a sequential range instance from this and the given address, spanning from the lowest to the highest addresses in the two subnetsMethod parameters in inet.ipaddr with type arguments of type IPAddressModifier and TypeMethodDescription<V> V
IPAddress.applyToBounds
(BiFunction<? super IPAddress, ? super IPAddress, V> func, IPAddress... series) Finds the lowest and highest single-valued address from the given addresses and subnets and this one, calling the given BiFunction with the lowest as first argument and the highest as second.<V> V
IPAddress.applyToBounds
(BiFunction<? super IPAddress, ? super IPAddress, V> func, IPAddress... series) Finds the lowest and highest single-valued address from the given addresses and subnets and this one, calling the given BiFunction with the lowest as first argument and the highest as second.IPAddressSeqRange.toString
(Function<? super IPAddress, String> lowerStringer, String separator, Function<? super IPAddress, String> upperStringer) Constructors in inet.ipaddr with parameters of type IPAddress -
Uses of IPAddress in inet.ipaddr.format
Methods in inet.ipaddr.format that return IPAddressModifier and TypeMethodDescriptionIPAddressRange.coverWithPrefixBlock()
Returns the minimal-size prefix block that covers all the addresses in this range.IPAddressRange.getLower()
Returns the address in the range with the lowest numeric value.IPAddressRange.getUpper()
Returns the address in the range with the highest numeric value.IPAddressRange.spanWithPrefixBlocks()
Produces an array of prefix blocks that spans the same set of addresses.IPAddressRange.spanWithSequentialBlocks()
Produces an array of blocks that are sequential that cover the same set of addresses.Methods in inet.ipaddr.format that return types with arguments of type IPAddressModifier and TypeMethodDescriptionIPAddressRange.getIterable()
Useful for using an instance in a "for-each loop", as infor(addr : address.getIterable()) { ...
IPAddressRange.iterator()
Iterates through the individual addresses of this address or subnet.IPAddressRange.prefixBlockIterator
(int prefLength) Iterates through the range of prefix blocks in this range instance using the given prefix length.AddressComponentRangeSpliterator
<? extends IPAddressRange, ? extends IPAddress> IPAddressRange.prefixBlockSpliterator
(int prefLength) Partitions and traverses through the individual prefix blocks for the given prefix length.IPAddressRange.prefixBlockStream
(int prefLength) Returns a sequential stream of the prefix blocks for the given prefix length.AddressComponentRangeSpliterator
<? extends IPAddressRange, ? extends IPAddress> IPAddressRange.spliterator()
Partitions and traverses through the individual addresses.Methods in inet.ipaddr.format with parameters of type IPAddress -
Uses of IPAddress in inet.ipaddr.format.util
Methods in inet.ipaddr.format.util with type parameters of type IPAddressModifier and TypeMethodDescriptionPartition.partitionWithSpanningBlocks
(E newAddr) Partitions the address series into prefix blocks and single addresses. -
Uses of IPAddress in inet.ipaddr.format.validate
Methods in inet.ipaddr.format.validate that return IPAddressModifier and TypeMethodDescriptionParsedHost.asAddress()
ParsedHost.asAddress
(IPAddress.IPVersion version) ParsedHost.getMask()
IPAddressProvider.AdjustedAddressCreator.getProviderAddress()
IPAddressProvider.CachedAddressCreator.getProviderAddress()
IPAddressProvider.CachedAddressCreator.getProviderAddress
(IPAddress.IPVersion version) IPAddressProvider.CachedAddressProvider.getProviderAddress()
IPAddressProvider.CachedAddressProvider.getProviderAddress
(IPAddress.IPVersion version) IPAddressProvider.getProviderAddress()
IPAddressProvider.getProviderAddress
(IPAddress.IPVersion version) IPAddressProvider.NullProvider.getProviderAddress()
IPAddressProvider.NullProvider.getProviderAddress
(IPAddress.IPVersion version) IPAddressProvider.VersionedAddressCreator.getProviderAddress
(IPAddress.IPVersion version) ParsedIPAddress.getProviderAddress()
ParsedIPAddress.getProviderAddress
(IPAddress.IPVersion version) IPAddressProvider.AdjustedAddressCreator.getProviderHostAddress()
IPAddressProvider.CachedAddressCreator.getProviderHostAddress()
IPAddressProvider.CachedAddressProvider.getProviderHostAddress()
IPAddressProvider.getProviderHostAddress()
IPAddressProvider.NullProvider.getProviderHostAddress()
ParsedIPAddress.getProviderHostAddress()
IPAddressProvider.AllCreator.getProviderMask()
default IPAddress
IPAddressProvider.getProviderMask()
ParsedIPAddress.getProviderMask()
Methods in inet.ipaddr.format.validate with parameters of type IPAddressModifier and TypeMethodDescriptionstatic IPAddressProvider
IPAddressProvider.getProviderFor
(IPAddress address, IPAddress hostAddress) Wraps an IPAddress for IPAddressString in the cases where no parsing is provided, the address exists already -
Uses of IPAddress in inet.ipaddr.ipv4
Subclasses of IPAddress in inet.ipaddr.ipv4Modifier and TypeClassDescriptionclass
An IPv4 address, or a subnet of multiple IPv4 addresses.Methods in inet.ipaddr.ipv4 with parameters of type IPAddressModifier and TypeMethodDescriptionIPv4Address.bitwiseOrNetwork
(IPAddress mask, int networkPrefixLength) IPv4Address.coverWithPrefixBlock
(IPAddress other) IPv4Address.maskNetwork
(IPAddress mask, int networkPrefixLength) IPv4Address.mergeToPrefixBlocks
(IPAddress... addresses) IPv4Address.mergeToSequentialBlocks
(IPAddress... addresses) IPv4Address.spanWithPrefixBlocks
(IPAddress other) IPv4Address.spanWithRange
(IPAddress other) Deprecated.IPv4Address.spanWithSequentialBlocks
(IPAddress other) If the given address is IPv4, or can be converted to IPv4, returns thatIPv4Address
.IPv4Address.toSequentialRange
(IPAddress other) -
Uses of IPAddress in inet.ipaddr.ipv6
Subclasses of IPAddress in inet.ipaddr.ipv6Modifier and TypeClassDescriptionclass
An IPv6 address, or a subnet of multiple IPv6 addresses.Methods in inet.ipaddr.ipv6 with parameters of type IPAddressModifier and TypeMethodDescriptionIPv6Address.bitwiseOrNetwork
(IPAddress mask, int networkPrefixLength) IPv6Address.coverWithPrefixBlock
(IPAddress other) IPv6Address.maskNetwork
(IPAddress mask, int networkPrefixLength) IPv6Address.mergeToPrefixBlocks
(IPAddress... addresses) IPv6Address.mergeToSequentialBlocks
(IPAddress... addresses) IPv6Address.spanWithPrefixBlocks
(IPAddress other) IPv6Address.spanWithRange
(IPAddress other) Deprecated.IPv6Address.spanWithSequentialBlocks
(IPAddress other) If the given address is IPv6, or can be converted to IPv6, returns thatIPv6Address
.IPv6Address.toSequentialRange
(IPAddress other)
toSequentialRange(IPAddress)