public class AddressStringParameters
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
IPAddressString.
The IPAddressString class uses a default permissive IPAddressStringParameters instance when you do not specify one.
If you wish to use parameters different from the default, then use this class. All instances are immutable and must be constructed with the nested Builder class.| Modifier and Type | Class and Description |
|---|---|
static class |
AddressStringParameters.AddressStringFormatParameters |
static class |
AddressStringParameters.BuilderBase |
static class |
AddressStringParameters.RangeParameters
Controls special characters in addresses like '*', '-', '_'
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowAll
Allows the all-encompassing address *, which represents the network of all IPv4 and IPv6 addresses
|
boolean |
allowEmpty
Allows zero-length IPAddressStrings like ""
|
boolean |
allowSingleSegment
Allows an address to be specified as a single value, eg ffffffff, without the standard use of segments like 1.2.3.4 or 1:2:4:3:5:6:7:8
|
static boolean |
DEFAULT_ALLOW_ALL |
static boolean |
DEFAULT_ALLOW_EMPTY |
static boolean |
DEFAULT_ALLOW_SINGLE_SEGMENT |
| Constructor and Description |
|---|
AddressStringParameters(boolean allowEmpty,
boolean allowAll,
boolean allowSingleSegment) |
| Modifier and Type | Method and Description |
|---|---|
AddressStringParameters |
clone() |
int |
compareTo(AddressStringParameters o) |
boolean |
equals(java.lang.Object o) |
AddressStringParameters.BuilderBase |
toBuilder(AddressStringParameters.BuilderBase builder) |
public static final boolean DEFAULT_ALLOW_EMPTY
public static final boolean DEFAULT_ALLOW_ALL
public static final boolean DEFAULT_ALLOW_SINGLE_SEGMENT
public final boolean allowEmpty
#emptyIsLoopback,
DEFAULT_ALLOW_EMPTYpublic final boolean allowAll
DEFAULT_ALLOW_ALLpublic final boolean allowSingleSegment
DEFAULT_ALLOW_SINGLE_SEGMENTpublic AddressStringParameters(boolean allowEmpty,
boolean allowAll,
boolean allowSingleSegment)
public AddressStringParameters.BuilderBase toBuilder(AddressStringParameters.BuilderBase builder)
public AddressStringParameters clone()
clone in class java.lang.Objectpublic int compareTo(AddressStringParameters o)
public boolean equals(java.lang.Object o)
equals in class java.lang.Object