public class IPAddressLargeDivision extends AddressDivisionBase implements IPAddressStringDivision
Modifier and Type | Field and Description |
---|---|
static char[] |
EXTENDED_DIGITS |
static char |
EXTENDED_DIGITS_RANGE_SEPARATOR |
static java.lang.String |
EXTENDED_DIGITS_RANGE_SEPARATOR_STR |
Constructor and Description |
---|
IPAddressLargeDivision(byte[] bytes,
byte[] upperBytes,
int bitCount,
int defaultRadix,
IPAddressNetwork<?,?,?,?,?> network,
java.lang.Integer prefixLength) |
IPAddressLargeDivision(byte[] bytes,
int bitCount,
int defaultRadix) |
IPAddressLargeDivision(byte[] bytes,
int bitCount,
int defaultRadix,
IPAddressNetwork<?,?,?,?,?> network,
java.lang.Integer prefixLength) |
Modifier and Type | Method and Description |
---|---|
int |
getBitCount() |
java.math.BigInteger |
getCount()
The count of possible distinct values for this AddressComponent.
|
int |
getDefaultTextualRadix() |
int |
getDigitCount(int radix)
Returns the count of digits of the value, or if a range, the larger value in the range
|
java.lang.Integer |
getDivisionPrefixLength() |
int |
getMaxDigitCount() |
int |
getMaxDigitCount(int radix)
Returns the count of digits of the largest possible value
|
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 |
includesMax() |
boolean |
includesZero() |
boolean |
isBoundedBy(int val)
Returns true if the possible values of this division fall below the given boundary value.
|
boolean |
isFullRange() |
boolean |
isMax() |
boolean |
isMultiple()
Whether this represents multiple potential values (eg a prefixed address or a segment representing a range of values)
|
boolean |
isPrefixBlock()
Returns whether the division range includes the block of values for its prefix length
|
boolean |
isPrefixBlock(int divisionPrefixLen) |
boolean |
isPrefixed() |
boolean |
isSinglePrefixBlock()
Returns whether the division range matches the block of values for its prefix length
|
boolean |
isZero() |
getBytes, getBytes, getDigitCount, getLowerStandardString, getStandardString, getUpperBytes, getUpperBytes, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLowerStandardString, getStandardString
public static final char EXTENDED_DIGITS_RANGE_SEPARATOR
public static final java.lang.String EXTENDED_DIGITS_RANGE_SEPARATOR_STR
public static final char[] EXTENDED_DIGITS
public IPAddressLargeDivision(byte[] bytes, int bitCount, int defaultRadix) throws AddressValueException
AddressValueException
public IPAddressLargeDivision(byte[] bytes, int bitCount, int defaultRadix, IPAddressNetwork<?,?,?,?,?> network, java.lang.Integer prefixLength) throws AddressValueException
bytes
- bitCount
- defaultRadix
- network
- can be null if prefixLength is nullprefixLength
- AddressValueException
public IPAddressLargeDivision(byte[] bytes, byte[] upperBytes, int bitCount, int defaultRadix, IPAddressNetwork<?,?,?,?,?> network, java.lang.Integer prefixLength) throws AddressValueException
AddressValueException
public boolean isBoundedBy(int val)
AddressStringDivision
isBoundedBy
in interface AddressStringDivision
public int getDigitCount(int radix)
AddressStringDivision
getDigitCount
in interface AddressStringDivision
public java.math.BigInteger getCount()
AddressItem
getCount
in interface AddressItem
public int getBitCount()
getBitCount
in interface AddressItem
getBitCount
in interface IPAddressStringDivision
public boolean isMultiple()
AddressItem
isMultiple
in interface AddressItem
public boolean includesZero()
includesZero
in interface AddressItem
public boolean includesMax()
includesMax
in interface AddressItem
public boolean isMax()
isMax
in interface AddressItem
public boolean isZero()
isZero
in interface AddressItem
public boolean isFullRange()
isFullRange
in interface AddressItem
isFullRange
in interface IPAddressStringDivision
public int getDefaultTextualRadix()
getDefaultTextualRadix
in class AddressDivisionBase
public int getMaxDigitCount()
getMaxDigitCount
in class AddressDivisionBase
public int getMaxDigitCount(int radix)
AddressStringDivision
getMaxDigitCount
in interface AddressStringDivision
public java.lang.String getString()
getString
in class AddressDivisionBase
public java.lang.String getWildcardString()
public int getPrefixAdjustedRangeString(int segmentIndex, AddressSegmentParams params, java.lang.StringBuilder appendable)
IPAddressStringDivision
getPrefixAdjustedRangeString
in interface IPAddressStringDivision
public boolean isPrefixBlock()
IPAddressStringDivision
isPrefixBlock
in interface IPAddressStringDivision
public boolean isSinglePrefixBlock()
isSinglePrefixBlock
in interface IPAddressStringDivision
public java.lang.Integer getDivisionPrefixLength()
getDivisionPrefixLength
in interface IPAddressStringDivision
public boolean isPrefixed()
public boolean isPrefixBlock(int divisionPrefixLen)