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 booleanallowBinaryAllows ip address binary format 0b1.0b100.0b0.0b10101010 or 0b1111000011110000::0b0101010101010101booleanallowPrefixesBeyondAddressSizecontrols whether ipv4 can have prefix length bigger than 32 and whether ipv6 can have prefix length bigger than 128booleanallowPrefixLengthLeadingZeroscontrols whether you allow addresses with prefixes that have leasing zeros like 1.0.0.0/08 or 1::/064static booleanDEFAULT_ALLOW_BINARYstatic booleanDEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZEstatic booleanDEFAULT_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 booleanequals(java.lang.Object o)abstract IPAddressNetwork<?,?,?,?,?>getNetwork()inthashCode()
-
-
-
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:
equalsin classAddressStringParameters.AddressStringFormatParameters
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAddressStringParameters.AddressStringFormatParameters
-
-