public abstract class IPAddressDivision extends AddressDivision implements IPAddressGenericDivision
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPrefixBlock(int divisionPrefixLen)
Returns whether the values of this series contains the prefix block for the given prefix length.
|
boolean |
containsSinglePrefixBlock(int divisionPrefixLen)
Returns whether the division range matches exactly the block of values for the given prefix length.
|
java.lang.Integer |
getBlockMaskPrefixLength(boolean network)
If this is equivalent to the mask for a CIDR prefix length block or subnet class, it returns the prefix length.
|
java.lang.Integer |
getDivisionPrefixLength()
Returns the network prefix for the division.
|
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.
|
java.lang.String |
getString()
Produces a normalized string to represent the segment.
|
java.lang.String |
getWildcardString()
Produces a string to represent the segment, favouring wildcards and range characters over the network prefix to represent subnets.
|
boolean |
isPrefixBlock()
Returns whether the division range includes the block of values for its prefix length
|
boolean |
isPrefixed() |
boolean |
isSinglePrefixBlock()
Returns whether the division range matches the block of values for its prefix length
|
boolean |
matchesWithPrefixMask(long value,
java.lang.Integer divisionPrefixLen) |
equals, getCount, getDigitCount, getDivisionPrefixCount, getDivisionValue, getDivisionValueCount, getMaxDigitCount, getMaxValue, getMinPrefixLengthForBlock, getPrefixCount, getPrefixLengthForSingleBlock, getUpperDivisionValue, getUpperValue, getValue, hashCode, hasUppercaseVariations, includesMax, includesZero, isBoundedBy, isMax, isMultiple, isZero, matches, matchesWithMask, matchesWithMaskgetBytes, getBytes, getBytes, getDigitCount, getLowerStandardString, getStandardString, getUpperBytes, getUpperBytes, getUpperBytes, toStringisFullRangecompareTo, getBitCount, getByteCount, getBytes, getBytes, getBytes, getCount, getMinPrefixLengthForBlock, getPrefixCount, getPrefixLengthForSingleBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isMax, isMultiple, isZero, testRange, testRangegetBitCountgetDigitCount, getLowerStandardString, getMaxDigitCount, getStandardString, isBoundedBypublic boolean isPrefixed()
isPrefixed in interface IPAddressGenericDivisionpublic java.lang.Integer getDivisionPrefixLength()
getDivisionPrefixLength in interface IPAddressStringDivisionpublic boolean matchesWithPrefixMask(long value,
java.lang.Integer divisionPrefixLen)
public java.lang.Integer getBlockMaskPrefixLength(boolean network)
network - whether to check for a network mask or a host maskIPAddressSection.getPrefixLengthForSingleBlock()public boolean containsPrefixBlock(int divisionPrefixLen)
AddressItem
Use AddressItem.getMinPrefixLengthForBlock() to determine the smallest prefix length for which this method returns true.
containsPrefixBlock in interface AddressItempublic boolean isPrefixBlock()
IPAddressStringDivisionisPrefixBlock in interface IPAddressStringDivisionpublic boolean containsSinglePrefixBlock(int divisionPrefixLen)
containsSinglePrefixBlock in interface AddressItemdivisionPrefixLen - public boolean isSinglePrefixBlock()
IPAddressStringDivisionisSinglePrefixBlock in interface IPAddressStringDivisionpublic java.lang.String getString()
public java.lang.String getWildcardString()
public int getPrefixAdjustedRangeString(int segmentIndex,
AddressSegmentParams params,
java.lang.StringBuilder appendable)
IPAddressStringDivisiongetPrefixAdjustedRangeString in interface IPAddressStringDivision