Module inet.ipaddr

Interface AddressStringDivision

All Known Subinterfaces:
AddressGenericDivision, AddressSegment, IPAddressGenericDivision, IPAddressStringDivision
All Known Implementing Classes:
AddressBitsDivision, AddressDivision, AddressDivisionBase, IPAddressBitsDivision, IPAddressDivision, IPAddressJoinedSegments, IPAddressLargeDivision, IPAddressSegment, IPv4AddressSegment, IPv4JoinedSegments, IPv6AddressSegment, MACAddressSegment

public interface AddressStringDivision
  • Method Summary

    Modifier and Type
    Method
    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, 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, 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 Details

    • 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, 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, 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: