- java.lang.Object
-
- inet.ipaddr.AddressStringParameters.AddressStringFormatParameters
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
IPAddressStringParameters.IPAddressStringFormatParameters
,MACAddressStringParameters.MACAddressStringFormatParameters
- Enclosing class:
- AddressStringParameters
public static class AddressStringParameters.AddressStringFormatParameters extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 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
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.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 Summary
Constructors Constructor Description AddressStringFormatParameters(boolean allowLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Field Detail
-
DEFAULT_ALLOW_LEADING_ZEROS
public static final boolean DEFAULT_ALLOW_LEADING_ZEROS
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS
public static final boolean DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_WILDCARDED_SEPARATOR
public static final boolean DEFAULT_ALLOW_WILDCARDED_SEPARATOR
- See Also:
- Constant Field Values
-
DEFAULT_RANGE_OPTIONS
public static final AddressStringParameters.RangeParameters DEFAULT_RANGE_OPTIONS
-
rangeOptions
public final AddressStringParameters.RangeParameters rangeOptions
controls whether wildcards like '*', '_' or ranges with '-' are allowed
-
allowWildcardedSeparator
public final boolean allowWildcardedSeparator
controls whether the wildcard '*' or '%' can replace the segment separators '.' and ':'. If so, then you can write addresses like *.* or *:*- See Also:
DEFAULT_ALLOW_WILDCARDED_SEPARATOR
-
allowLeadingZeros
public final 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. Single segment addresses that must have the requisite length to be parsed are not affected by this flag.- See Also:
DEFAULT_ALLOW_LEADING_ZEROS
-
allowUnlimitedLeadingZeros
public final boolean allowUnlimitedLeadingZeros
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. For example, this determines whether you allow 0001.0002.0003.0004- See Also:
DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS
-
-
Constructor Detail
-
AddressStringFormatParameters
public AddressStringFormatParameters(boolean allowLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator)
-
-