inet.ipaddr.format

Interface AddressStringDivision

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      int getConfiguredString(int segmentIndex, AddressSegmentParams params, java.lang.StringBuilder appendable)
      Configures a segment string according to the given params and the given segment index.
      int getDigitCount(int radix)
      Returns the count of digits of the value, or if a range, the larger value in the range
      int getMaxDigitCount(int radix)
      Returns the count of digits of the largest possible value
      boolean isBoundedBy(int value)
      Returns true if the possible values of this division fall below the given boundary value.
    • Method Detail

      • isBoundedBy

        boolean isBoundedBy(int value)
        Returns true if the possible values of this division fall below the given boundary value.
      • getDigitCount

        int getDigitCount(int radix)
        Returns the count of digits of the value, or if a range, the larger value in the range
        Parameters:
        radix -
        Returns:
      • getMaxDigitCount

        int getMaxDigitCount(int radix)
        Returns the count of digits of the largest possible value
        Parameters:
        radix -
        Returns:
      • getConfiguredString

        int getConfiguredString(int segmentIndex,
                                AddressSegmentParams params,
                                java.lang.StringBuilder appendable)
        Configures a segment string according to the given params and the given segment index. Appends the string to appendable. If appendable is null, simply returns the length of the string that would have been appended.
        Parameters:
        segmentIndex -
        params -
        appendable -
        Returns: