- java.lang.Object
-
- inet.ipaddr.AddressStringParameters.AddressStringFormatParameters
-
- inet.ipaddr.IPAddressStringParameters.IPAddressStringFormatParameters
-
- inet.ipaddr.ipv6.IPv6AddressStringParameters
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<IPv6AddressStringParameters>
public class IPv6AddressStringParameters extends IPAddressStringParameters.IPAddressStringFormatParameters implements java.lang.Comparable<IPv6AddressStringParameters>
The IPv6-specific parameters within aIPAddressStringParameters
instance.- Author:
- sfoley
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IPv6AddressStringParameters.Builder
-
Field Summary
Fields Modifier and Type Field Description boolean
allowBase85
boolean
allowEmptyZone
Allows the '%' character to be followed by no zone or scope identifierboolean
allowMixed
Allows IPv6 addresses with embedded ipv4 like a:b:c:d:e:f:1.2.3.4boolean
allowZone
Allows IPv6 zones with the '%' character, which generally denotes either scope identifiers or network interfaces.static boolean
DEFAULT_ALLOW_BASE85
static boolean
DEFAULT_ALLOW_EMPTY_ZONE
static boolean
DEFAULT_ALLOW_MIXED
static boolean
DEFAULT_ALLOW_ZONE
-
Fields inherited from class inet.ipaddr.IPAddressStringParameters.IPAddressStringFormatParameters
allowBinary, allowPrefixesBeyondAddressSize, allowPrefixLengthLeadingZeros, DEFAULT_ALLOW_BINARY, DEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZE, DEFAULT_ALLOW_PREFIX_LENGTH_LEADING_ZEROS
-
Fields inherited from class inet.ipaddr.AddressStringParameters.AddressStringFormatParameters
allowLeadingZeros, allowUnlimitedLeadingZeros, allowWildcardedSeparator, DEFAULT_ALLOW_LEADING_ZEROS, DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS, DEFAULT_ALLOW_WILDCARDED_SEPARATOR, DEFAULT_RANGE_OPTIONS, rangeOptions
-
-
Constructor Summary
Constructors Constructor Description IPv6AddressStringParameters(boolean allowLeadingZeros, boolean allowCIDRPrefixLeadingZeros, boolean allowUnlmitedLeadingZeros, boolean allowMixed, IPAddressStringParameters mixedOptions, boolean allowZone, boolean allowEmptyZone, boolean allowBase85, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize, boolean allowBinary, IPv6AddressNetwork network)
Constructs the parameters for IPv6-specific string parsing.IPv6AddressStringParameters(boolean allowLeadingZeros, boolean allowCIDRPrefixLeadingZeros, boolean allowUnlmitedLeadingZeros, boolean allowMixed, IPAddressStringParameters mixedOptions, boolean allowZone, boolean allowBase85, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize, IPv6AddressNetwork network)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPv6AddressStringParameters
clone()
int
compareTo(IPv6AddressStringParameters o)
boolean
equals(java.lang.Object o)
IPAddressStringParameters
getMixedParameters()
IPv6AddressNetwork
getNetwork()
int
hashCode()
IPv6AddressStringParameters.Builder
toBuilder()
IPv6AddressStringParameters.Builder
toBuilder(boolean isMixed)
-
-
-
Field Detail
-
DEFAULT_ALLOW_MIXED
public static final boolean DEFAULT_ALLOW_MIXED
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_ZONE
public static final boolean DEFAULT_ALLOW_ZONE
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_EMPTY_ZONE
public static final boolean DEFAULT_ALLOW_EMPTY_ZONE
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_BASE85
public static final boolean DEFAULT_ALLOW_BASE85
- See Also:
- Constant Field Values
-
allowMixed
public final boolean allowMixed
Allows IPv6 addresses with embedded ipv4 like a:b:c:d:e:f:1.2.3.4- See Also:
DEFAULT_ALLOW_MIXED
-
allowZone
public final boolean allowZone
Allows IPv6 zones with the '%' character, which generally denotes either scope identifiers or network interfaces.- See Also:
DEFAULT_ALLOW_ZONE
-
allowEmptyZone
public final boolean allowEmptyZone
Allows the '%' character to be followed by no zone or scope identifier- See Also:
DEFAULT_ALLOW_EMPTY_ZONE
-
allowBase85
public final boolean allowBase85
-
-
Constructor Detail
-
IPv6AddressStringParameters
@Deprecated public IPv6AddressStringParameters(boolean allowLeadingZeros, boolean allowCIDRPrefixLeadingZeros, boolean allowUnlmitedLeadingZeros, boolean allowMixed, IPAddressStringParameters mixedOptions, boolean allowZone, boolean allowBase85, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize, IPv6AddressNetwork network)
Deprecated.Retained for backwards compatibility.
Library users are strongly encourage to use the builder classes instead of this constructor.
-
IPv6AddressStringParameters
public IPv6AddressStringParameters(boolean allowLeadingZeros, boolean allowCIDRPrefixLeadingZeros, boolean allowUnlmitedLeadingZeros, boolean allowMixed, IPAddressStringParameters mixedOptions, boolean allowZone, boolean allowEmptyZone, boolean allowBase85, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize, boolean allowBinary, IPv6AddressNetwork network)
Constructs the parameters for IPv6-specific string parsing.
Users are strongly encouraged to use the nested Builder class instead of this constructor.- Parameters:
allowLeadingZeros
-allowCIDRPrefixLeadingZeros
-allowUnlmitedLeadingZeros
-allowMixed
-mixedOptions
-allowZone
-allowBase85
-rangeOptions
-allowWildcardedSeparator
-allowPrefixesBeyondAddressSize
-allowBinary
-network
-
-
-
Method Detail
-
toBuilder
public IPv6AddressStringParameters.Builder toBuilder()
-
toBuilder
public IPv6AddressStringParameters.Builder toBuilder(boolean isMixed)
-
getNetwork
public IPv6AddressNetwork getNetwork()
- Specified by:
getNetwork
in classIPAddressStringParameters.IPAddressStringFormatParameters
-
clone
public IPv6AddressStringParameters clone()
-
getMixedParameters
public IPAddressStringParameters getMixedParameters()
-
compareTo
public int compareTo(IPv6AddressStringParameters o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<IPv6AddressStringParameters>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classIPAddressStringParameters.IPAddressStringFormatParameters
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classIPAddressStringParameters.IPAddressStringFormatParameters
-
-