Package | Description |
---|---|
inet.ipaddr | |
inet.ipaddr.format | |
inet.ipaddr.ipv4 | |
inet.ipaddr.ipv6 |
Modifier and Type | Method and Description |
---|---|
IPAddress.IPVersion |
IPAddressString.getIPVersion() |
abstract IPAddress.IPVersion |
IPAddressSegment.getIPVersion() |
abstract IPAddress.IPVersion |
IPAddressSection.getIPVersion() |
abstract IPAddress.IPVersion |
IPAddressNetwork.getIPVersion() |
IPAddress.IPVersion |
IPAddress.getIPVersion() |
static IPAddress.IPVersion |
IPAddress.IPVersion.valueOf(java.lang.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)
If this represents an ip address, returns that address.
|
static int |
IPAddress.bitCount(IPAddress.IPVersion version) |
static int |
IPAddressSection.bitsPerSegment(IPAddress.IPVersion version) |
static int |
IPAddress.bitsPerSegment(IPAddress.IPVersion version) |
static int |
IPAddress.byteCount(IPAddress.IPVersion version) |
static int |
IPAddressSection.bytesPerSegment(IPAddress.IPVersion version) |
IPAddress |
IPAddressString.getAddress(IPAddress.IPVersion version) |
static int |
IPAddressSegment.getBitCount(IPAddress.IPVersion version) |
static int |
IPAddressSegment.getByteCount(IPAddress.IPVersion version) |
static int |
IPAddressSegment.getDefaultTextualRadix(IPAddress.IPVersion version) |
static IPAddress |
IPAddress.getLoopback(IPAddress.IPVersion version) |
static int |
IPAddressSegment.getMaxSegmentValue(IPAddress.IPVersion version) |
static java.lang.String[] |
IPAddress.getStandardLoopbackStrings(IPAddress.IPVersion version) |
boolean |
HostName.isAddress(IPAddress.IPVersion version) |
static boolean |
IPAddressSegment.isFullRange(int lower,
int upper,
java.lang.Integer prefix,
IPAddress.IPVersion version) |
static boolean |
IPAddressSegment.isFullRange(int lower,
int upper,
IPAddress.IPVersion version) |
static int |
IPAddress.maxSegmentValue(IPAddress.IPVersion version) |
static IPAddressNetwork |
IPAddress.network(IPAddress.IPVersion version) |
static int |
IPAddress.segmentCount(IPAddress.IPVersion version) |
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,
java.lang.CharSequence networkPrefixLength)
Validates that the string has the format "/x" for a valid prefix length x.
|
Constructor and Description |
---|
IPAddressTypeException(java.lang.CharSequence prefixLength,
IPAddress.IPVersion version,
java.lang.String key,
java.lang.Throwable cause) |
IPAddressTypeException(int prefixLength,
IPAddress.IPVersion version,
java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
static int |
IPAddressDivision.defaultMaxCharsPerSegment(IPAddress.IPVersion version) |
Modifier and Type | Method and Description |
---|---|
IPAddress.IPVersion |
IPv4AddressSegment.getIPVersion() |
IPAddress.IPVersion |
IPv4AddressSection.getIPVersion() |
IPAddress.IPVersion |
IPv4AddressNetwork.getIPVersion() |
Modifier and Type | Method and Description |
---|---|
IPAddress.IPVersion |
IPv6AddressSegment.getIPVersion() |
IPAddress.IPVersion |
IPv6AddressSection.getIPVersion() |
IPAddress.IPVersion |
IPv6AddressNetwork.getIPVersion() |