- 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 TypeMethodDescriptionint
getDigitCount
(int radix) Returns the count of digits of the value, or if a range, the larger value in the rangeint
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 valueint
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
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
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:
-