Module inet.ipaddr
Package inet.ipaddr
Class IPAddressStringParameters.IPAddressStringFormatParameters
- java.lang.Object
-
- inet.ipaddr.AddressStringParameters.AddressStringFormatParameters
-
- inet.ipaddr.IPAddressStringParameters.IPAddressStringFormatParameters
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
IPv4AddressStringParameters
,IPv6AddressStringParameters
- Enclosing class:
- IPAddressStringParameters
public abstract static class IPAddressStringParameters.IPAddressStringFormatParameters extends AddressStringParameters.AddressStringFormatParameters
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean
allowBinary
Allows ip address binary format 0b1.0b100.0b0.0b10101010 or 0b1111000011110000::0b0101010101010101boolean
allowPrefixesBeyondAddressSize
controls whether ipv4 can have prefix length bigger than 32 and whether ipv6 can have prefix length bigger than 128boolean
allowPrefixLengthLeadingZeros
controls whether you allow addresses with prefixes that have leasing zeros like 1.0.0.0/08 or 1::/064static boolean
DEFAULT_ALLOW_BINARY
static boolean
DEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZE
static boolean
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 IPAddressStringFormatParameters(boolean allowBinary, boolean allowLeadingZeros, boolean allowPrefixLengthLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize)
Constructs the parameters for parsing version-specific IP address strings.IPAddressStringFormatParameters(boolean allowLeadingZeros, boolean allowPrefixLengthLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
abstract IPAddressNetwork<?,?,?,?,?>
getNetwork()
int
hashCode()
-
-
-
Field Detail
-
DEFAULT_ALLOW_PREFIX_LENGTH_LEADING_ZEROS
public static final boolean DEFAULT_ALLOW_PREFIX_LENGTH_LEADING_ZEROS
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZE
public static final boolean DEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_BINARY
public static final boolean DEFAULT_ALLOW_BINARY
- See Also:
- Constant Field Values
-
allowBinary
public final boolean allowBinary
Allows ip address binary format 0b1.0b100.0b0.0b10101010 or 0b1111000011110000::0b0101010101010101
-
allowPrefixesBeyondAddressSize
public final boolean allowPrefixesBeyondAddressSize
controls whether ipv4 can have prefix length bigger than 32 and whether ipv6 can have prefix length bigger than 128- See Also:
DEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZE
-
allowPrefixLengthLeadingZeros
public final boolean allowPrefixLengthLeadingZeros
controls whether you allow addresses with prefixes that have leasing zeros like 1.0.0.0/08 or 1::/064
-
-
Constructor Detail
-
IPAddressStringFormatParameters
@Deprecated public IPAddressStringFormatParameters(boolean allowLeadingZeros, boolean allowPrefixLengthLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize)
Deprecated.retained for backwards compatibility
-
IPAddressStringFormatParameters
public IPAddressStringFormatParameters(boolean allowBinary, boolean allowLeadingZeros, boolean allowPrefixLengthLeadingZeros, boolean allowUnlimitedLeadingZeros, AddressStringParameters.RangeParameters rangeOptions, boolean allowWildcardedSeparator, boolean allowPrefixesBeyondAddressSize)
Constructs the parameters for parsing version-specific IP address strings.
Users are strongly encouraged to use Builder classes instead of this constructor.- Parameters:
allowBinary
-allowLeadingZeros
-allowPrefixLengthLeadingZeros
-allowUnlimitedLeadingZeros
-rangeOptions
-allowWildcardedSeparator
-allowPrefixesBeyondAddressSize
-
-
-
Method Detail
-
getNetwork
public abstract IPAddressNetwork<?,?,?,?,?> getNetwork()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAddressStringParameters.AddressStringFormatParameters
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAddressStringParameters.AddressStringFormatParameters
-
-