Module inet.ipaddr
Package inet.ipaddr

Class IPAddressStringParameters.IPAddressStringFormatParameters

java.lang.Object
inet.ipaddr.AddressStringParameters.AddressStringFormatParameters
inet.ipaddr.IPAddressStringParameters.IPAddressStringFormatParameters
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
IPv4AddressStringParameters, IPv6AddressStringParameters
Enclosing class:
IPAddressStringParameters

public abstract static class IPAddressStringParameters.IPAddressStringFormatParameters extends AddressStringParameters.AddressStringFormatParameters
See Also:
  • Field Details

    • DEFAULT_ALLOW_PREFIX_LENGTH_LEADING_ZEROS

      public static final boolean DEFAULT_ALLOW_PREFIX_LENGTH_LEADING_ZEROS
      See Also:
    • DEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZE

      public static final boolean DEFAULT_ALLOW_PREFIX_BEYOND_ADDRESS_SIZE
      See Also:
    • DEFAULT_ALLOW_BINARY

      public static final boolean DEFAULT_ALLOW_BINARY
      See Also:
    • 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:
    • 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
      See Also:
  • Constructor Details

    • 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 Details