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 | Method and Description |
---|---|
abstract IPAddress.IPVersion |
IPAddressNetwork.getIPVersion() |
abstract IPAddress.IPVersion |
IPAddressSegment.getIPVersion() |
IPAddress.IPVersion |
IPAddress.getIPVersion() |
IPAddress.IPVersion |
IPAddress.IPAddressValueProvider.getIPVersion() |
IPAddress.IPVersion |
IPAddressString.getIPVersion()
Returns the IP address version if
IPAddressString.isIPAddress() returns true, otherwise returns null |
IPAddress.IPVersion |
IPAddressSegmentSeries.getIPVersion()
Returns the version of this segment series
|
IPAddress.IPVersion |
PrefixBlockAllocator.getVersion()
Returns the IP version of the available blocks in the allocator,
which is determined by the version of the first block made available to the allocator.
|
IPAddress.IPVersion |
IPAddressStringParameters.inferVersion() |
static IPAddress.IPVersion |
IPAddress.IPVersion.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IPAddress.IPVersion[] |
IPAddress.IPVersion.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
IPAddress |
HostName.asAddress(IPAddress.IPVersion version)
Deprecated.
|
static int |
IPAddressSection.bitsPerSegment(IPAddress.IPVersion version) |
static int |
IPAddressSection.bytesPerSegment(IPAddress.IPVersion version) |
IPAddress |
IPAddressNetwork.IPAddressGenerator.from(IPAddress.IPVersion version,
Address.SegmentValueProvider lowerValueProvider,
Address.SegmentValueProvider upperValueProvider,
Integer prefixLength) |
T |
IPAddressNetwork.HostIDStringAddressGenerator.get(IPAddress.IPVersion version,
Address.SegmentValueProvider lowerValueProvider,
Address.SegmentValueProvider upperValueProvider,
Integer prefixLength) |
IPAddressString |
IPAddressNetwork.IPAddressStringGenerator.get(IPAddress.IPVersion version,
Address.SegmentValueProvider lowerValueProvider,
Address.SegmentValueProvider upperValueProvider,
Integer prefixLength) |
HostName |
IPAddressNetwork.HostNameGenerator.get(IPAddress.IPVersion version,
Address.SegmentValueProvider lowerValueProvider,
Address.SegmentValueProvider upperValueProvider,
Integer prefixLength) |
IPAddress |
IPAddressString.getAddress(IPAddress.IPVersion version)
Similar to
IPAddressString.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. |
static int |
IPAddressSegment.getBitCount(IPAddress.IPVersion version) |
static int |
IPAddress.getBitCount(IPAddress.IPVersion version) |
static int |
IPAddressSegment.getByteCount(IPAddress.IPVersion version) |
static int |
IPAddress.getByteCount(IPAddress.IPVersion version) |
static int |
IPAddressSegment.getDefaultTextualRadix(IPAddress.IPVersion version) |
static int |
IPAddressSegment.getMaxSegmentValue(IPAddress.IPVersion version) |
static int |
IPAddress.getSegmentCount(IPAddress.IPVersion version) |
boolean |
HostName.isAddress(IPAddress.IPVersion version)
Deprecated.
|
IPAddress |
IPAddressString.toAddress(IPAddress.IPVersion version)
Produces the
IPAddress of the specified address version corresponding to this IPAddressString. |
static void |
IPAddressString.validateNetworkPrefix(IPAddress.IPVersion ipVersion,
int networkPrefixLength,
boolean allowPrefixesBeyondAddressSize) |
static int |
IPAddressString.validateNetworkPrefixLength(IPAddress.IPVersion ipVersion,
CharSequence networkPrefixLength)
Validates that the string has the format "/x" for a valid prefix length x.
|
Constructor and Description |
---|
PrefixLenException(CharSequence prefixLength,
IPAddress.IPVersion version,
Throwable cause) |
PrefixLenException(int prefixLength,
IPAddress.IPVersion version) |
Modifier and Type | Method and Description |
---|---|
IPAddress.IPVersion |
IPv4AddressSection.getIPVersion() |
IPAddress.IPVersion |
IPv4AddressNetwork.getIPVersion() |
IPAddress.IPVersion |
IPv4AddressSegment.getIPVersion() |
Modifier and Type | Method and Description |
---|---|
IPAddress.IPVersion |
IPv6AddressSection.getIPVersion() |
IPAddress.IPVersion |
IPv6AddressSegment.getIPVersion() |
IPAddress.IPVersion |
IPv6AddressNetwork.getIPVersion() |