Module inet.ipaddr
Package inet.ipaddr

Class AddressStringParameters.AddressStringFormatParameters

    • Field Detail

      • DEFAULT_ALLOW_LEADING_ZEROS

        public static final boolean DEFAULT_ALLOW_LEADING_ZEROS
        See Also:
        Constant Field Values
      • DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS

        public static final boolean DEFAULT_ALLOW_UNLIMITED_LEADING_ZEROS
        See Also:
        Constant Field Values
      • DEFAULT_ALLOW_WILDCARDED_SEPARATOR

        public static final boolean DEFAULT_ALLOW_WILDCARDED_SEPARATOR
        See Also:
        Constant Field Values
      • allowWildcardedSeparator

        public final boolean allowWildcardedSeparator
        controls whether the wildcard '*' or '%' can replace the segment separators '.' and ':'. If so, then you can write addresses like *.* or *:*
        See Also:
        DEFAULT_ALLOW_WILDCARDED_SEPARATOR
      • allowLeadingZeros

        public final boolean allowLeadingZeros
        whether you allow addresses with segments that have leasing zeros like 001.2.3.004 or 1:000a:: For IPV4, this option overrides inet_aton octal. Single segment addresses that must have the requisite length to be parsed are not affected by this flag.
        See Also:
        DEFAULT_ALLOW_LEADING_ZEROS
    • Constructor Detail

      • AddressStringFormatParameters

        public AddressStringFormatParameters​(boolean allowLeadingZeros,
                                             boolean allowUnlimitedLeadingZeros,
                                             AddressStringParameters.RangeParameters rangeOptions,
                                             boolean allowWildcardedSeparator)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object