Module inet.ipaddr
Package inet.ipaddr

Class IPAddressStringParameters.IPAddressStringFormatParameters

    • 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
      • 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
        See Also:
        DEFAULT_ALLOW_PREFIX_LENGTH_LEADING_ZEROS
    • 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 -