Package | Description |
---|---|
inet.ipaddr | |
inet.ipaddr.ipv4 | |
inet.ipaddr.ipv6 |
Modifier and Type | Class and Description |
---|---|
class |
IPAddressTypeNetwork<T extends IPAddress,S extends IPAddressSegment>
A network of addresses of a single version (ie bit length) providing a collection of standard addresses and segments for that version, such as masks and loopbacks.
|
Modifier and Type | Method and Description |
---|---|
IPAddress |
HostName.asAddress()
If this represents an ip address, returns that address.
|
IPAddress |
HostName.asAddress(IPAddress.IPVersion version)
If this represents an ip address, returns that address.
|
static IPAddress |
IPAddress.from(byte[] bytes) |
static IPAddress |
IPAddress.from(byte[] bytes,
byte[] bytes2,
java.lang.Integer prefixLength) |
static IPAddress |
IPAddress.from(byte[] bytes,
java.lang.Integer prefixLength) |
static IPAddress |
IPAddress.from(java.net.InetAddress inetAddress) |
IPAddress |
IPAddressString.getAddress() |
IPAddress |
IPAddressString.getAddress(IPAddress.IPVersion version) |
abstract IPAddress |
IPAddressNetwork.getHostMask(int networkPrefixLength) |
static IPAddress |
IPAddress.getLocalHost() |
abstract IPAddress |
IPAddressNetwork.getLoopback() |
static IPAddress |
IPAddress.getLoopback(IPAddress.IPVersion version) |
abstract IPAddress |
IPAddress.getLower()
If this represents an address with ranging values, returns an address representing the lower values of the range.
|
IPAddress |
IPAddressNetwork.getNetworkMask(int networkPrefixLength) |
abstract IPAddress |
IPAddressNetwork.getNetworkMask(int networkPrefixLength,
boolean withPrefixLength) |
abstract IPAddress |
IPAddress.getUpper()
If this represents an address with ranging values, returns an address representing the upper values of the range
If this represents an address with a single value in each segment, returns this.
|
IPAddress |
HostName.resolve()
If this represents an ip address, returns that address.
|
abstract IPAddress[] |
IPAddress.subtract(IPAddress other)
Subtract the give subnet from this subnet, returning an array of sections for the result (the subnets will not be contiguous so an array is required).
|
IPAddress |
IPAddressString.toAddress()
Produces the
IPAddress corresponding to this IPAddressString. |
IPAddress |
IPAddressString.toAddress(IPAddress.IPVersion version)
Produces the
IPAddress of the specified address version corresponding to this IPAddressString. |
IPAddress |
IPAddress.toPrefixedEquivalent()
Returns the equivalent CIDR address for which the range of addresses represented
is specified using just a single value and a prefix length in the returned section.
|
IPAddress |
IPAddress.toPrefixedMin()
Constructs an equivalent address with the smallest CIDR prefix possible (largest network),
such that the address represents the exact same range of addresses.
|
IPAddress |
HostName.toResolvedAddress() |
abstract IPAddress |
IPAddress.toSubnet(int networkPrefixLength)
Creates a subnet address using the given CIDR prefix bits.
|
abstract IPAddress |
IPAddress.toSubnet(IPAddress mask)
Creates a subnet address using the given mask.
|
abstract IPAddress |
IPAddress.toSubnet(IPAddress mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|
IPAddress |
IPAddress.toSupernet()
Return an address for the network encompassing this address,
with the network portion of the returned address extending to the furthest segment boundary
located entirely within but not matching the network portion of this address,
unless the network portion has no bits in which case the same address is returned.
|
IPAddress |
IPAddress.toSupernet(java.lang.Integer prefixLengthDecrement)
Return an address for the network encompassing this address.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Iterable<? extends IPAddress> |
IPAddress.getAddresses() |
abstract java.util.Iterator<? extends IPAddress> |
IPAddress.iterator() |
Modifier and Type | Method and Description |
---|---|
int |
IPAddress.compareTo(IPAddress other) |
boolean |
IPAddress.contains(IPAddress other) |
boolean |
IPAddressConverter.isIPv4Convertible(IPAddress address)
returns whether the address is IPv4 or can be converted to IPv4.
|
boolean |
IPAddressConverter.DefaultAddressConverter.isIPv4Convertible(IPAddress address) |
boolean |
IPAddressConverter.isIPv6Convertible(IPAddress address)
returns whether the address is IPv6 or can be converted to IPv6.
|
boolean |
IPAddressConverter.DefaultAddressConverter.isIPv6Convertible(IPAddress address) |
boolean |
IPAddress.isMaskCompatibleWithRange(IPAddress mask,
java.lang.Integer networkPrefixLength)
Check that the range in each segment resulting from the mask is contiguous, otherwise we cannot represent it.
|
boolean |
IPAddress.isSameAddress(IPAddress other) |
abstract IPAddress[] |
IPAddress.subtract(IPAddress other)
Subtract the give subnet from this subnet, returning an array of sections for the result (the subnets will not be contiguous so an array is required).
|
IPv4Address |
IPAddressConverter.DefaultAddressConverter.toIPv4(IPAddress address) |
IPv6Address |
IPAddressConverter.DefaultAddressConverter.toIPv6(IPAddress address) |
abstract IPAddress |
IPAddress.toSubnet(IPAddress mask)
Creates a subnet address using the given mask.
|
abstract IPAddress |
IPAddress.toSubnet(IPAddress mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|
Constructor and Description |
---|
HostName(IPAddress addr) |
IPAddressTypeException(IPAddress one,
java.lang.String key) |
Modifier and Type | Class and Description |
---|---|
class |
IPv4Address
An IPv4 address, or a subnet of multiple IPv4 addresses.
|
Modifier and Type | Method and Description |
---|---|
IPv4Address[] |
IPv4Address.subtract(IPAddress other) |
IPv4Address |
IPv4Address.IPv4AddressConverter.toIPv4(IPAddress address)
If the given address is IPv4, or can be converted to IPv4, returns that
IPv4Address . |
IPv4Address |
IPv4Address.toSubnet(IPAddress mask)
Creates a subnet address using the given mask.
|
IPv4Address |
IPv4Address.toSubnet(IPAddress mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|
Modifier and Type | Class and Description |
---|---|
class |
IPv6Address
An IPv6 address, or a subnet of multiple IPv6 addresses.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IPv6Address.contains(IPAddress other) |
boolean |
IPv6Address.isSameAddress(IPAddress other) |
IPv6Address[] |
IPv6Address.subtract(IPAddress other) |
IPv6Address |
IPv6Address.IPv6AddressConverter.toIPv6(IPAddress address)
If the given address is IPv6, or can be converted to IPv6, returns that
IPv6Address . |
IPv6Address |
IPv6Address.toSubnet(IPAddress mask)
Creates a subnet address using the given mask.
|
IPv6Address |
IPv6Address.toSubnet(IPAddress mask,
java.lang.Integer networkPrefixLength)
Creates a subnet address using the given mask.
|