public class AddressLargeDivision extends AddressDivisionBase
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 |
---|
AddressLargeDivision(byte[] bytes,
byte[] upperBytes,
int bitCount,
int defaultRadix,
java.lang.Integer networkPrefixLength) |
AddressLargeDivision(byte[] bytes,
int bitCount,
int defaultRadix,
java.lang.Integer prefix) |
Modifier and Type | Method and Description |
---|---|
int |
getBitCount() |
int |
getConfiguredString(int segmentIndex,
AddressSegmentParams params,
java.lang.StringBuilder appendable)
Configures a segment string according to the given params and the given segment index.
|
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
|
int |
getMaxDigitCount() |
int |
getMaxDigitCount(int radix)
Returns the count of digits of the largest possible value
|
boolean |
isBoundedBy(int val)
Returns true if the possible values of this division fall below the given boundary value.
|
boolean |
isFullRange() |
boolean |
isMultiple()
Whether this represents multiple potential values (eg a prefixed address or a segment representing a range of values)
|
boolean |
isZero() |
getBytes, getBytes, getDigitCount, getPrefixAdjustedString, getStandardString, getString, getUpperBytes, getUpperBytes, toString
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 AddressLargeDivision(byte[] bytes, byte[] upperBytes, int bitCount, int defaultRadix, java.lang.Integer networkPrefixLength)
public AddressLargeDivision(byte[] bytes, int bitCount, int defaultRadix, java.lang.Integer prefix)
public boolean isBoundedBy(int val)
AddressStringDivision
public int getDigitCount(int radix)
AddressStringDivision
public java.math.BigInteger getCount()
AddressItem
public int getBitCount()
public boolean isMultiple()
AddressItem
public boolean isZero()
public boolean isFullRange()
public int getDefaultTextualRadix()
getDefaultTextualRadix
in class AddressDivisionBase
public int getMaxDigitCount()
getMaxDigitCount
in class AddressDivisionBase
public int getMaxDigitCount(int radix)
AddressStringDivision
public int getConfiguredString(int segmentIndex, AddressSegmentParams params, java.lang.StringBuilder appendable)
AddressStringDivision
getConfiguredString
in interface AddressStringDivision
getConfiguredString
in class AddressDivisionBase