-
- All Superinterfaces:
AddressStringDivision
- All Known Subinterfaces:
IPAddressGenericDivision
- All Known Implementing Classes:
IPAddressBitsDivision
,IPAddressDivision
,IPAddressJoinedSegments
,IPAddressLargeDivision
,IPAddressSegment
,IPv4AddressSegment
,IPv4JoinedSegments
,IPv6AddressSegment
public interface IPAddressStringDivision extends AddressStringDivision
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBitCount()
java.lang.Integer
getDivisionPrefixLength()
int
getPrefixAdjustedRangeString(int segmentIndex, AddressSegmentParams params, java.lang.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.boolean
isFullRange()
Returns whether the division range includes all possible valuesboolean
isPrefixBlock()
Returns whether the division range includes the block of values for its prefix lengthboolean
isSinglePrefixBlock()
Returns whether the division range matches the block of values for its prefix length-
Methods inherited from interface inet.ipaddr.format.string.AddressStringDivision
getDigitCount, getLowerStandardString, getMaxDigitCount, getStandardString, isBoundedBy
-
-
-
-
Method Detail
-
getBitCount
int getBitCount()
-
getDivisionPrefixLength
java.lang.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, java.lang.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
-
-