java.lang.Object
inet.ipaddr.AddressStringParameters.AddressStringFormatParameters
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
IPAddressStringParameters.IPAddressStringFormatParameters
,MACAddressStringParameters.MACAddressStringFormatParameters
- Enclosing class:
AddressStringParameters
public static class AddressStringParameters.AddressStringFormatParameters
extends Object
implements Cloneable, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
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.final boolean
ifallowLeadingZeros
or the address is IPv4 andIPv4AddressStringParameters.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.final boolean
controls whether the wildcard '*' or '%' can replace the segment separators '.' and ':'.static final boolean
static final boolean
static final boolean
static final AddressStringParameters.RangeParameters
controls whether wildcards like '*', '_' or ranges with '-' are allowed -
Constructor Summary
ConstructorsConstructorDescriptionAddressStringFormatParameters
(boolean allowLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator) -
Method Summary
-
Field Details
-
DEFAULT_ALLOW_LEADING_ZEROS
public static final boolean DEFAULT_ALLOW_LEADING_ZEROS- See Also:
-
DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS
public static final boolean DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS- See Also:
-
DEFAULT_ALLOW_WILDCARDED_SEPARATOR
public static final boolean DEFAULT_ALLOW_WILDCARDED_SEPARATOR- See Also:
-
DEFAULT_RANGE_OPTIONS
-
rangeOptions
controls whether wildcards like '*', '_' or ranges with '-' are allowed -
allowWildcardedSeparator
public final boolean allowWildcardedSeparatorcontrols whether the wildcard '*' or '%' can replace the segment separators '.' and ':'. If so, then you can write addresses like *.* or *:*- See Also:
-
allowLeadingZeros
public final boolean allowLeadingZeroswhether 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. Single segment addresses that must have the requisite length to be parsed are not affected by this flag.- See Also:
-
allowUnlimitedLeadingZeros
public final boolean allowUnlimitedLeadingZerosifallowLeadingZeros
or the address is IPv4 andIPv4AddressStringParameters.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.0004- See Also:
-
-
Constructor Details
-
AddressStringFormatParameters
public AddressStringFormatParameters(boolean allowLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator)
-
-
Method Details