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, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLowerStandardString, getStandardStringpublic 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
AddressValueExceptionpublic 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 - AddressValueExceptionpublic IPAddressLargeDivision(byte[] bytes,
byte[] upperBytes,
int bitCount,
int defaultRadix,
IPAddressNetwork<?,?,?,?,?> network,
java.lang.Integer prefixLength)
throws AddressValueException
AddressValueExceptionpublic boolean isBoundedBy(int val)
AddressStringDivisionisBoundedBy in interface AddressStringDivisionpublic int getDigitCount(int radix)
AddressStringDivisiongetDigitCount in interface AddressStringDivisionpublic java.math.BigInteger getCount()
AddressItemgetCount in interface AddressItempublic int getBitCount()
getBitCount in interface AddressItemgetBitCount in interface IPAddressStringDivisionpublic boolean isMultiple()
AddressItemisMultiple in interface AddressItempublic boolean includesZero()
includesZero in interface AddressItempublic boolean includesMax()
includesMax in interface AddressItempublic boolean isMax()
isMax in interface AddressItempublic boolean isZero()
isZero in interface AddressItempublic boolean isFullRange()
isFullRange in interface AddressItemisFullRange in interface IPAddressStringDivisionpublic int getDefaultTextualRadix()
getDefaultTextualRadix in class AddressDivisionBasepublic int getMaxDigitCount()
getMaxDigitCount in class AddressDivisionBasepublic int getMaxDigitCount(int radix)
AddressStringDivisiongetMaxDigitCount in interface AddressStringDivisionpublic java.lang.String getString()
getString in class AddressDivisionBasepublic java.lang.String getWildcardString()
public int getPrefixAdjustedRangeString(int segmentIndex,
AddressSegmentParams params,
java.lang.StringBuilder appendable)
IPAddressStringDivisiongetPrefixAdjustedRangeString in interface IPAddressStringDivisionpublic boolean isPrefixBlock()
IPAddressStringDivisionisPrefixBlock in interface IPAddressStringDivisionpublic boolean isSinglePrefixBlock()
isSinglePrefixBlock in interface IPAddressStringDivisionpublic java.lang.Integer getDivisionPrefixLength()
getDivisionPrefixLength in interface IPAddressStringDivisionpublic boolean isPrefixed()
public boolean isPrefixBlock(int divisionPrefixLen)