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
      • 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:
        IPAddressStringParameters#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:
        IPAddressStringParameters#DEFAULT_ALLOW_PREFIX_LENGTH_LEADING_ZEROS
    • Constructor Detail

      • IPAddressStringFormatParameters

        public IPAddressStringFormatParameters(boolean allowLeadingZeros,
                                               boolean allowPrefixLengthLeadingZeros,
                                               boolean allowUnlimitedLeadingZeros,
                                               AddressStringParameters.RangeParameters rangeOptions,
                                               boolean allowWildcardedSeparator,
                                               boolean allowPrefixesBeyondAddressSize)