public interface AddressStringDivision
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,
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.
|
boolean isBoundedBy(int value)
int getDigitCount(int radix)
radix
- int getMaxDigitCount(int radix)
radix
- int getStandardString(int segmentIndex, AddressSegmentParams params, StringBuilder 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.
segmentIndex
- params
- appendable
- int getLowerStandardString(int segmentIndex, AddressSegmentParams params, StringBuilder appendable)
If appendable is null, simply returns the length of the string that would have been appended.
segmentIndex
- params
- appendable
-