Package | Description |
---|---|
inet.ipaddr |
Base classes for IP addresses and generic addresses.
|
Modifier and Type | Method and Description |
---|---|
IPAddressString |
IPAddressString.adjustPrefixBySegment(boolean nextSegment)
Increases or decreases prefix length to the next segment boundary of the given address version's standard segment boundaries.
|
IPAddressString |
IPAddressString.adjustPrefixLength(int adjustment)
Increases or decreases prefix length by the given increment.
|
IPAddressString |
HostName.asAddressString()
If this represents an ip address or represents any valid IPAddressString, returns the corresponding address string.
|
IPAddressString |
IPAddressNetwork.IPAddressStringGenerator.get(Address.AddressValueProvider addressProvider) |
IPAddressString |
IPAddressNetwork.IPAddressStringGenerator.get(Address.SegmentValueProvider lowerValueProvider,
Address.SegmentValueProvider upperValueProvider,
Integer prefixLength,
CharSequence zone) |
IPAddressString |
IPAddressNetwork.IPAddressStringGenerator.get(byte[] bytes) |
IPAddressString |
IPAddressNetwork.IPAddressStringGenerator.get(IPAddress.IPAddressValueProvider addressProvider) |
IPAddressString |
IPAddressNetwork.IPAddressStringGenerator.get(IPAddress.IPVersion version,
Address.SegmentValueProvider lowerValueProvider,
Address.SegmentValueProvider upperValueProvider,
Integer prefixLength) |
IPAddressString |
IPAddress.toAddressString()
Generates an IPAddressString object for this IPAddress object.
|
Modifier and Type | Method and Description |
---|---|
int |
IPAddressString.compareTo(IPAddressString other)
All address strings are comparable.
|
boolean |
IPAddressString.contains(IPAddressString other)
Returns whether the address subnet identified by this address string contains the address identified by the given string.
|
boolean |
IPAddress.matches(IPAddressString otherString) |
boolean |
IPAddressString.prefixContains(IPAddressString other)
Similar to
prefixEquals(IPAddressString) , but instead returns whether the prefix of this address contains the same of the given address,
using the prefix length of this address. |
boolean |
IPAddressString.prefixEquals(IPAddressString other)
Similar to
equals(Object) , but instead returns whether the prefix of this address matches the same of the given address,
using the prefix length of this address. |
Constructor and Description |
---|
IPAddressStringGenerator(Map<String,IPAddressString> backingMap) |
IPAddressStringGenerator(Map<String,IPAddressString> backingMap,
IPAddressStringParameters options) |