Uses of Class
inet.ipaddr.IPAddress
-
Packages that use IPAddress 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.format.util Contains utility classes such as collections, spliterators, and String-writers.inet.ipaddr.format.validate Validation of address strings and creation of address representations from the validated strings.inet.ipaddr.ipv4 Classes for IPv4inet.ipaddr.ipv6 Classes for IPv6 -
-
Uses of IPAddress in inet.ipaddr
Classes in inet.ipaddr with type parameters of type IPAddress Modifier and Type Class Description classIPAddressNetwork<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends java.net.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 classIPAddressNetwork.IPAddressCreator<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends java.net.InetAddress>Methods in inet.ipaddr that return IPAddress Modifier and Type Method Description abstract IPAddressIPAddress. adjustPrefixBySegment(boolean nextSegment)abstract IPAddressIPAddress. adjustPrefixBySegment(boolean nextSegment, boolean zeroed)abstract IPAddressIPAddress. adjustPrefixLength(int adjustment)Increases or decreases prefix length by the given increment.abstract IPAddressIPAddress. adjustPrefixLength(int adjustment, boolean zeroed)abstract IPAddressIPAddress. applyPrefixLength(int networkPrefixLength)Deprecated.IPAddressHostName. asAddress()If this represents an ip address, returns that address.IPAddressHostName. asAddress(IPAddress.IPVersion version)If this represents an ip address, returns that address.IPAddressIPAddress. 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.IPAddressIPAddress. 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 IPAddressIPAddress. bitwiseOr(IPAddress mask)Equivalent to callingbitwiseOr(IPAddress, boolean)with the second argument as false.abstract IPAddressIPAddress. bitwiseOr(IPAddress mask, boolean retainPrefix)Does the bitwise disjunction with this address.abstract IPAddressIPAddress. bitwiseOrNetwork(IPAddress mask, int networkPrefixLength)Does the bitwise disjunction with this address.abstract IPAddressIPAddress. coverWithPrefixBlock(IPAddress other)Returns the minimal-size prefix block that covers all the addresses spanning from this subnet to the given subnet.abstract IPAddressIPAddressSeqRange. coverWithPrefixBlock()IPAddressIPAddressNetwork.IPAddressGenerator. from(byte[] bytes)IPAddressIPAddressNetwork.IPAddressGenerator. from(byte[] bytes, int byteStartIndex, int byteEndIndex)IPAddressIPAddressNetwork.IPAddressGenerator. from(byte[] bytes, int byteStartIndex, int byteEndIndex, java.lang.Integer networkPrefixLength)IPAddressIPAddressNetwork.IPAddressGenerator. from(byte[] bytes, java.lang.Integer prefixLength)IPAddressIPAddressNetwork.IPAddressGenerator. from(IPAddress.IPVersion version, Address.SegmentValueProvider lowerValueProvider, Address.SegmentValueProvider upperValueProvider, java.lang.Integer prefixLength)IPAddressIPAddressNetwork.IPAddressGenerator. from(java.net.InetAddress inetAddress)IPAddressIPAddressNetwork.IPAddressGenerator. from(java.net.InetAddress inetAddress, java.lang.Integer prefixLength)IPAddressIPAddressNetwork.IPAddressGenerator. from(java.net.InterfaceAddress interfaceAddress)IPAddressHostName. getAddress()If this represents an ip address, returns that address.IPAddressIPAddressString. getAddress()If this represents an ip address, returns that address.IPAddressIPAddressString. 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.IPAddressIPAddressString. 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.IPAddressIPAddress. getHostMask()abstract IPAddressIPAddress. getLower()IPAddressIPAddressSeqRange. getLower()abstract IPAddressIPAddress. getLowerNonZeroHost()IPAddressHostName. getMask()If a mask was provided with this host name, this returns the resulting mask value.IPAddressIPAddressString. getMask()If a mask was provided with this address string, this returns the resulting mask value.IPAddressIPAddress. getNetworkMask()abstract IPAddressIPAddress. getUpper()IPAddressIPAddressSeqRange. getUpper()abstract IPAddressIPAddress. increment(long increment)abstract IPAddressIPAddress. incrementBoundary(long increment)abstract IPAddressIPAddress. 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 IPAddressIPAddress. mask(IPAddress mask)Equivalent to callingmask(IPAddress, boolean)with the second argument as false.abstract IPAddressIPAddress. mask(IPAddress mask, boolean retainPrefix)Applies the given mask to all addresses represented by this IPAddress.abstract IPAddressIPAddress. 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.IPAddressIPAddress. removeBitCountPrefixLength()Removes the prefix length from addresses with a prefix length extending to the end of the address.abstract IPAddressIPAddress. removePrefixLength()Deprecated.abstract IPAddressIPAddress. removePrefixLength(boolean zeroed)Deprecated.abstract IPAddressIPAddress. reverseBits(boolean perByte)abstract IPAddressIPAddress. reverseBytes()abstract IPAddressIPAddress. reverseBytesPerSegment()abstract IPAddressIPAddress. reverseSegments()abstract IPAddressIPAddress. setPrefixLength(int prefixLength)abstract IPAddressIPAddress. setPrefixLength(int prefixLength, boolean zeroed)abstract IPAddressIPAddress. 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[]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).IPAddressHostName. toAddress()If this represents an ip address, returns that address.IPAddressIPAddressString. toAddress()Produces theIPAddresscorresponding to this IPAddressString.IPAddressIPAddressString. toAddress(IPAddress.IPVersion version)Produces theIPAddressof the specified address version corresponding to this IPAddressString.IPAddressIPAddressString. 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 IPAddressIPAddress. toMaxHost()abstract IPAddressIPAddress. toMaxHost(int prefixLength)abstract IPAddressIPAddress. toPrefixBlock()Returns the subnet associated with the prefix length of this address.abstract IPAddressIPAddress. toPrefixBlock(int networkPrefixLength)abstract IPAddressIPAddress. toZeroHost()abstract IPAddressIPAddress. toZeroHost(int prefixLength)abstract IPAddressIPAddress. toZeroNetwork()abstract IPAddressIPAddress. withoutPrefixLength()Methods in inet.ipaddr that return types with arguments of type IPAddress Modifier and Type Method Description abstract java.util.Iterator<? extends IPAddress>IPAddress. blockIterator(int segmentCount)abstract AddressComponentSpliterator<? extends IPAddress>IPAddress. blockSpliterator(int segmentCount)abstract java.util.stream.Stream<? extends IPAddress>IPAddress. blockStream(int segmentCount)abstract java.lang.Iterable<? extends IPAddress>IPAddress. getIterable()abstract java.lang.Iterable<? extends IPAddress>IPAddressSeqRange. getIterable()abstract java.util.Iterator<? extends IPAddress>IPAddress. iterator()abstract java.util.Iterator<? extends IPAddress>IPAddressSeqRange. iterator()abstract java.util.Iterator<? extends IPAddress>IPAddress. nonZeroHostIterator()abstract java.util.Iterator<? extends IPAddress>IPAddress. prefixBlockIterator()abstract java.util.Iterator<? extends IPAddress>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)abstract java.util.stream.Stream<? extends IPAddress>IPAddress. prefixBlockStream()abstract java.util.stream.Stream<? extends IPAddress>IPAddressSeqRange. prefixBlockStream(int prefLength)abstract java.util.Iterator<? extends IPAddress>IPAddress. prefixIterator()abstract AddressComponentSpliterator<? extends IPAddress>IPAddress. prefixSpliterator()abstract java.util.stream.Stream<? extends IPAddress>IPAddress. prefixStream()java.util.Iterator<? extends IPAddress>IPAddress. sequentialBlockIterator()AddressComponentSpliterator<? extends IPAddress>IPAddress. sequentialBlockSpliterator()java.util.stream.Stream<? extends IPAddress>IPAddress. sequentialBlockStream()abstract AddressComponentSpliterator<? extends IPAddress>IPAddress. spliterator()abstract AddressComponentRangeSpliterator<? extends IPAddressSeqRange,? extends IPAddress>IPAddressSeqRange. spliterator()abstract java.util.stream.Stream<? extends IPAddress>IPAddress. stream()abstract java.util.stream.Stream<? extends IPAddress>IPAddressSeqRange. stream()Methods in inet.ipaddr with parameters of type IPAddress Modifier and Type Method Description <V> VIPAddress. applyToBounds(java.util.function.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 IPAddressIPAddress. bitwiseOr(IPAddress mask)Equivalent to callingbitwiseOr(IPAddress, boolean)with the second argument as false.abstract IPAddressIPAddress. bitwiseOr(IPAddress mask, boolean retainPrefix)Does the bitwise disjunction with this address.abstract IPAddressIPAddress. bitwiseOrNetwork(IPAddress mask, int networkPrefixLength)Does the bitwise disjunction with this address.booleanIPAddress. contains(IPAddress other)Returns whether this contains all values of the given address or subnetbooleanIPAddressSeqRange. contains(IPAddress other)booleanIPAddress. containsNonZeroHosts(IPAddress other)Returns whether this address contains the non-zero host addresses in the other address or subnetabstract IPAddressIPAddress. coverWithPrefixBlock(IPAddress other)Returns the minimal-size prefix block that covers all the addresses spanning from this subnet to the given subnet.abstract IPAddressIPAddress. intersect(IPAddress other)Produces the subnet whose addresses are found in both this and the given subnet argument, or null if no such addresses.booleanIPAddressConverter.DefaultAddressConverter. isIPv4Convertible(IPAddress address)booleanIPAddressConverter. isIPv4Convertible(IPAddress address)returns whether the address is IPv4 or can be converted to IPv4.booleanIPAddressConverter.DefaultAddressConverter. isIPv6Convertible(IPAddress address)booleanIPAddressConverter. isIPv6Convertible(IPAddress address)returns whether the address is IPv6 or can be converted to IPv6.abstract IPAddressIPAddress. mask(IPAddress mask)Equivalent to callingmask(IPAddress, boolean)with the second argument as false.abstract IPAddressIPAddress. mask(IPAddress mask, boolean retainPrefix)Applies the given mask to all addresses represented by this IPAddress.abstract IPAddressIPAddress. 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.booleanIPAddress. 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.booleanIPAddress. 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 IPAddressSeqRangeIPAddress. 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[]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).IPv4AddressIPAddressConverter.DefaultAddressConverter. toIPv4(IPAddress address)IPv6AddressIPAddressConverter.DefaultAddressConverter. toIPv6(IPAddress address)abstract IPAddressSeqRangeIPAddress. 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 IPAddress Modifier and Type Method Description <V> VIPAddress. applyToBounds(java.util.function.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> VIPAddress. applyToBounds(java.util.function.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.java.lang.StringIPAddressSeqRange. toString(java.util.function.Function<? super IPAddress,java.lang.String> lowerStringer, java.lang.String separator, java.util.function.Function<? super IPAddress,java.lang.String> upperStringer)Constructors in inet.ipaddr with parameters of type IPAddress Constructor Description HostName(IPAddress addr)Constructs a host name from an IP address.HostName(IPAddress addr, int port)Constructs a host name from an IP address and a port. -
Uses of IPAddress in inet.ipaddr.format
Methods in inet.ipaddr.format that return IPAddress Modifier and Type Method Description IPAddressIPAddressRange. coverWithPrefixBlock()Returns the minimal-size prefix block that covers all the addresses in this range.IPAddressIPAddressRange. getLower()Returns the address in the range with the lowest numeric value.IPAddressIPAddressRange. getUpper()Returns the address in the range with the highest numeric value.IPAddress[]IPAddressRange. spanWithPrefixBlocks()Produces an array of prefix blocks that spans the same set of addresses.IPAddress[]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 IPAddress Modifier and Type Method Description java.lang.Iterable<? extends IPAddress>IPAddressRange. getIterable()Useful for using an instance in a "for-each loop", as infor(addr : address.getIterable()) { ...java.util.Iterator<? extends IPAddress>IPAddressRange. iterator()Iterates through the individual addresses of this address or subnet.java.util.Iterator<? extends IPAddress>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.java.util.stream.Stream<? extends IPAddress>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 Modifier and Type Method Description booleanIPAddressRange. contains(IPAddress other)Returns whether this range contains all addresses in the given address or subnet -
Uses of IPAddress in inet.ipaddr.format.util
Methods in inet.ipaddr.format.util with type parameters of type IPAddress Modifier and Type Method Description static <E extends IPAddress>
Partition<E>Partition. 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 IPAddress Modifier and Type Method Description IPAddressParsedHost. asAddress()IPAddressParsedHost. asAddress(IPAddress.IPVersion version)IPAddressParsedHost. getMask()IPAddressIPAddressProvider.AdjustedAddressCreator. getProviderAddress()IPAddressIPAddressProvider.CachedAddressCreator. getProviderAddress()IPAddressIPAddressProvider.CachedAddressCreator. getProviderAddress(IPAddress.IPVersion version)IPAddressIPAddressProvider.CachedAddressProvider. getProviderAddress()IPAddressIPAddressProvider.CachedAddressProvider. getProviderAddress(IPAddress.IPVersion version)IPAddressIPAddressProvider. getProviderAddress()IPAddressIPAddressProvider. getProviderAddress(IPAddress.IPVersion version)IPAddressIPAddressProvider.NullProvider. getProviderAddress()IPAddressIPAddressProvider.NullProvider. getProviderAddress(IPAddress.IPVersion version)IPAddressIPAddressProvider.VersionedAddressCreator. getProviderAddress(IPAddress.IPVersion version)IPAddressParsedIPAddress. getProviderAddress()IPAddressParsedIPAddress. getProviderAddress(IPAddress.IPVersion version)IPAddressIPAddressProvider.AdjustedAddressCreator. getProviderHostAddress()IPAddressIPAddressProvider.CachedAddressCreator. getProviderHostAddress()IPAddressIPAddressProvider.CachedAddressProvider. getProviderHostAddress()IPAddressIPAddressProvider. getProviderHostAddress()IPAddressIPAddressProvider.NullProvider. getProviderHostAddress()IPAddressParsedIPAddress. getProviderHostAddress()IPAddressIPAddressProvider.AllCreator. getProviderMask()default IPAddressIPAddressProvider. getProviderMask()IPAddressParsedIPAddress. getProviderMask()Methods in inet.ipaddr.format.validate with parameters of type IPAddress Modifier and Type Method Description static IPAddressProviderIPAddressProvider. 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.ipv4 Modifier and Type Class Description classIPv4AddressAn IPv4 address, or a subnet of multiple IPv4 addresses.Methods in inet.ipaddr.ipv4 with parameters of type IPAddress Modifier and Type Method Description IPv4AddressIPv4Address. bitwiseOr(IPAddress mask)IPv4AddressIPv4Address. bitwiseOr(IPAddress mask, boolean retainPrefix)IPv4AddressIPv4Address. bitwiseOrNetwork(IPAddress mask, int networkPrefixLength)IPv4AddressIPv4Address. coverWithPrefixBlock(IPAddress other)IPv4AddressIPv4Address. intersect(IPAddress other)IPv4AddressIPv4Address. mask(IPAddress mask)IPv4AddressIPv4Address. mask(IPAddress mask, boolean retainPrefix)IPv4AddressIPv4Address. maskNetwork(IPAddress mask, int networkPrefixLength)IPv4Address[]IPv4Address. mergeToPrefixBlocks(IPAddress... addresses)IPv4Address[]IPv4Address. mergeToSequentialBlocks(IPAddress... addresses)IPv4Address[]IPv4Address. spanWithPrefixBlocks(IPAddress other)IPv4AddressSeqRangeIPv4Address. spanWithRange(IPAddress other)Deprecated.IPv4Address[]IPv4Address. spanWithSequentialBlocks(IPAddress other)IPv4Address[]IPv4Address. subtract(IPAddress other)IPv4AddressIPv4Address.IPv4AddressConverter. toIPv4(IPAddress address)If the given address is IPv4, or can be converted to IPv4, returns thatIPv4Address.IPv4AddressSeqRangeIPv4Address. toSequentialRange(IPAddress other) -
Uses of IPAddress in inet.ipaddr.ipv6
Subclasses of IPAddress in inet.ipaddr.ipv6 Modifier and Type Class Description classIPv6AddressAn IPv6 address, or a subnet of multiple IPv6 addresses.Methods in inet.ipaddr.ipv6 with parameters of type IPAddress Modifier and Type Method Description IPv6AddressIPv6Address. bitwiseOr(IPAddress mask)IPv6AddressIPv6Address. bitwiseOr(IPAddress mask, boolean retainPrefix)IPv6AddressIPv6Address. bitwiseOrNetwork(IPAddress mask, int networkPrefixLength)IPv6AddressIPv6Address. coverWithPrefixBlock(IPAddress other)IPv6AddressIPv6Address. intersect(IPAddress other)IPv6AddressIPv6Address. mask(IPAddress mask)IPv6AddressIPv6Address. mask(IPAddress mask, boolean retainPrefix)IPv6AddressIPv6Address. maskNetwork(IPAddress mask, int networkPrefixLength)IPv6Address[]IPv6Address. mergeToPrefixBlocks(IPAddress... addresses)IPv6Address[]IPv6Address. mergeToSequentialBlocks(IPAddress... addresses)IPv6Address[]IPv6Address. spanWithPrefixBlocks(IPAddress other)IPv6AddressSeqRangeIPv6Address. spanWithRange(IPAddress other)Deprecated.IPv6Address[]IPv6Address. spanWithSequentialBlocks(IPAddress other)IPv6Address[]IPv6Address. subtract(IPAddress other)IPv6AddressIPv6Address.IPv6AddressConverter. toIPv6(IPAddress address)If the given address is IPv6, or can be converted to IPv6, returns thatIPv6Address.IPv6AddressSeqRangeIPv6Address. toSequentialRange(IPAddress other)
-