inet.ipaddr

Class AddressStringParameters.AddressStringFormatParameters

  • java.lang.Object
    • inet.ipaddr.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:
        AddressStringParameters#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. In other words, if this field is true, and if there are leading zeros then they are interpreted as decimal regardless of IPv4AddressStringParameters.inet_aton_octal. Otherwise, validation defers to IPv4AddressStringParameters.inet_aton_octal
        See Also:
        AddressStringParameters#DEFAULT_ALLOW_LEADING_ZEROS
      • allowUnlimitedLeadingZeros

        public final boolean allowUnlimitedLeadingZeros
        if allowLeadingZeros or the address is IPv4 and IPv4AddressStringParameters.inet_aton_octal is true, this determines if you allow leading zeros that extend segments beyond the usual segment length, which is 3 for IPv4 dotted-decimal and 4 for IPv6. For example, this determines whether you allow 0001.0002.0003.0004
        See Also:
        AddressStringParameters#DEFAULT_ALLOW_UNLIMITED_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