Interface IPAddressStringDivision
- All Superinterfaces:
AddressStringDivision
- All Known Subinterfaces:
IPAddressGenericDivision
- All Known Implementing Classes:
IPAddressBitsDivision, IPAddressDivision, IPAddressJoinedSegments, IPAddressLargeDivision, IPAddressSegment, IPv4AddressSegment, IPv4JoinedSegments, IPv6AddressSegment
-
Method Summary
Modifier and TypeMethodDescriptionintintgetPrefixAdjustedRangeString(int segmentIndex, AddressSegmentParams params, StringBuilder appendable) Produces a string to represent the segment of the form a-b where the value b has been adjusted for the prefix, anything beyond the prefix length being zero.booleanReturns whether the division range includes all possible valuesbooleanReturns whether the division range includes the block of values for its prefix lengthbooleanReturns whether the division range matches the block of values for its prefix lengthMethods inherited from interface AddressStringDivision
getDigitCount, getLowerStandardString, getMaxDigitCount, getStandardString, isBoundedBy
-
Method Details
-
getBitCount
int getBitCount() -
getDivisionPrefixLength
Integer getDivisionPrefixLength() -
isFullRange
boolean isFullRange()Returns whether the division range includes all possible values -
isPrefixBlock
boolean isPrefixBlock()Returns whether the division range includes the block of values for its prefix length -
isSinglePrefixBlock
boolean isSinglePrefixBlock()Returns whether the division range matches the block of values for its prefix length -
getPrefixAdjustedRangeString
int getPrefixAdjustedRangeString(int segmentIndex, AddressSegmentParams params, StringBuilder appendable) Produces a string to represent the segment of the form a-b where the value b has been adjusted for the prefix, anything beyond the prefix length being zero.- Returns:
- if the supplied appendable is null, returns the length of the string that would have been appended, otherwise returns 0
-