public class AddressStringParameters extends Object implements Cloneable, Serializable
IPAddressString
or MACAddressString
.
Those classes use a default permissive instance when you do not specify one.
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(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
DEFAULT_ALLOW_EMPTY
public final boolean allowAll
DEFAULT_ALLOW_ALL
public final boolean allowSingleSegment
DEFAULT_ALLOW_SINGLE_SEGMENT
public AddressStringParameters(boolean allowEmpty, boolean allowAll, boolean allowSingleSegment)
public AddressStringParameters.BuilderBase toBuilder(AddressStringParameters.BuilderBase builder)
public AddressStringParameters clone()
public int compareTo(AddressStringParameters o)