Module inet.ipaddr
Package inet.ipaddr
package inet.ipaddr
Base classes for IP addresses and generic addresses.
The core types in this package include Address, IPAddress, HostName, IPAddressString and MACAddressString.
- Author:
- sfoley
-
ClassDescriptionAn address, or a collection of multiple addresses.CountComparator first compares two address items by count, first by bit count for dissimilar items,
AddressItem.getBitCount()
, then by count of values for similar items, (AddressItem.getCount()
) and if both match, defers to the address item values for comparison.ValueComparator is similar to the default comparator CountComparator in the way they treat addresses representing a single address.AddressNetwork<S extends AddressSegment>An object representing a collection of addresses.Generates and caches HostIdentifierString instances.Prefix Handling Configuration The library is designed to treat prefixes three different ways:IPv6 and MAC address sections are not position-independent, which means they have a designated location within a full address.Represents a single segment of an address.Represents a series of address segments, each of equal byte size, the byte size being a whole number of bytes.This class allows you to control the validation performed by the classIPAddressString
orMACAddressString
.Controls special characters in addresses like '*', '-', '_'Thrown when an address or address component would be too large or small, when a prefix length is too large or small, or when prefixes across segments are inconsistent.A string that is used to identify a network host.An internet host name.This class allows you to control the validation performed by the classHostName
.Represents situations when an address, address section, address segment, or address string represents a valid type or format but that type does not match the required type or format for a given operation.A single IP address, or a subnet of multiple addresses.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.Choose a map of your choice to implement a cache of addresses and/or host names.Choose a map of your choice to implement a cache of host names and resolved addresses.IPAddressNetwork.IPAddressCreator<T extends IPAddress,R extends IPAddressSection, E extends IPAddressSection, S extends IPAddressSegment, J extends InetAddress> A factory of address strings or host names, which can be particularly useful if you are using your own network, or if you are using your own validation options.Choose a map of your choice to implement a cache of address strings and their associated addresses.A section of an IPAddress.This user-facing class is designed to be a clear way to create a collection of strings.Represents a clear way to create a specific type of string.This represents a single segment of an IP address.Represents a series of IP address segments.This class can be used to represent an arbitrary range of IP addresses.Parses the string representation of an IP address.This class allows you to control the validation performed by the classIPAddressString
.Parses the string representation of a MAC address.This class allows you to control the validation performed by the classIPAddressString
.Thrown when two different networks in use by the same address object are in conflict.