public static class AddressStringParameters.AddressStringFormatParameters
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
allowLeadingZeros
whether you allow addresses with segments that have leasing zeros like 001.2.3.004 or 1:000a::
For IPV4, this option overrides inet_aton octal.
|
boolean |
allowUnlimitedLeadingZeros
if
allowLeadingZeros or the address is IPv4 and IPv4AddressStringParameters.inet_aton_octal is true,
this determines if you allow leading zeros that extend segments
beyond the usual segment length, which is 3 for IPv4 dotted-decimal and 4 for IPv6. |
boolean |
allowWildcardedSeparator
controls whether the wildcard '*' or '%' can replace the segment separators '.' and ':'.
|
static boolean |
DEFAULT_ALLOW_LEADING_ZEROS |
static boolean |
DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS |
static boolean |
DEFAULT_ALLOW_WILDCARDED_SEPARATOR |
static AddressStringParameters.RangeParameters |
DEFAULT_RANGE_OPTIONS |
AddressStringParameters.RangeParameters |
rangeOptions
controls whether wildcards like '*', '_' or ranges with '-' are allowed
|
Constructor and Description |
---|
AddressStringFormatParameters(boolean allowLeadingZeros,
boolean allowUnlimitedLeadingZeros,
AddressStringParameters.RangeParameters rangeOptions,
boolean allowWildcardedSeparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
public static final boolean DEFAULT_ALLOW_LEADING_ZEROS
public static final boolean DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS
public static final boolean DEFAULT_ALLOW_WILDCARDED_SEPARATOR
public static final AddressStringParameters.RangeParameters DEFAULT_RANGE_OPTIONS
public final AddressStringParameters.RangeParameters rangeOptions
public final boolean allowWildcardedSeparator
DEFAULT_ALLOW_WILDCARDED_SEPARATOR
public final boolean allowLeadingZeros
IPv4AddressStringParameters.inet_aton_octal
.
Otherwise, validation defers to IPv4AddressStringParameters.inet_aton_octal
DEFAULT_ALLOW_LEADING_ZEROS
public final boolean allowUnlimitedLeadingZeros
allowLeadingZeros
or the address is IPv4 and IPv4AddressStringParameters.inet_aton_octal
is true,
this determines if you allow leading zeros that extend segments
beyond the usual segment length, which is 3 for IPv4 dotted-decimal and 4 for IPv6.
For example, this determines whether you allow 0001.0002.0003.0004DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS
public AddressStringFormatParameters(boolean allowLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator)