inet.ipaddr.format

Interface AddressStringDivision

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      int getDigitCount(int radix)
      Returns the count of digits of the value, or if a range, the larger value in the range
      int getLowerStandardString(int segmentIndex, AddressSegmentParams params, java.lang.StringBuilder appendable)
      Configures a segment string according to the given params and the given segment index, but using only the lower value of the segment range, if there is a range.
      int getMaxDigitCount(int radix)
      Returns the count of digits of the largest possible value
      int getStandardString(int segmentIndex, AddressSegmentParams params, java.lang.StringBuilder appendable)
      Configures a segment string according to the given params and the given segment index.
      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:
      • getStandardString

        int getStandardString(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.

        Prefix length of this segment is not accounted for in this method when creating this string.

        Parameters:
        segmentIndex -
        params -
        appendable -
        Returns:
      • getLowerStandardString

        int getLowerStandardString(int segmentIndex,
                                   AddressSegmentParams params,
                                   java.lang.StringBuilder appendable)
        Configures a segment string according to the given params and the given segment index, but using only the lower value of the segment range, if there is a range.

        If appendable is null, simply returns the length of the string that would have been appended.

        Parameters:
        segmentIndex -
        params -
        appendable -
        Returns: