Class AddressStringParameters.AddressStringFormatParameters
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
- Author:
- sfoley
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanwhether 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 booleanifallowLeadingZerosor the address is IPv4 andIPv4AddressStringParameters.inet_aton_octalis 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 booleancontrols whether the wildcard '*' or '%' can replace the segment separators '.' and ':'.static final booleanstatic final booleanstatic final booleanstatic final AddressStringParameters.RangeParameterscontrols 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 allowUnlimitedLeadingZerosifallowLeadingZerosor the address is IPv4 andIPv4AddressStringParameters.inet_aton_octalis 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
-
equals
-
hashCode
-