public class IPAddressBitsDivision extends IPAddressDivision
AddressDivision.BitwiseOrResult, AddressDivision.MaskResult
EXTENDED_DIGITS
Constructor and Description |
---|
IPAddressBitsDivision(long value,
long upperValue,
int bitCount,
int defaultRadix)
Constructs a division with the given values, the given number of bits, and the given radix for printing the values.
|
IPAddressBitsDivision(long value,
long upperValue,
int bitCount,
int defaultRadix,
Integer networkPrefixLength)
Constructs a division with the given values and prefix length, the given number of bits, and the given radix for printing the values.
|
IPAddressBitsDivision(long value,
long upperValue,
int bitCount,
int defaultRadix,
IPAddressNetwork<?,?,?,?,?> network,
Integer networkPrefixLength)
Constructs a division with the given values and prefix length, the given number of bits, and the given radix for printing the values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Two divisions are equal if they:
- they match type/version (ipv4, ipv6, mac, or a specific division class)
- match bit counts
- match values
Prefix lengths, for those divisions that have them, are ignored.
|
int |
getBitCount()
Provides the number of bits comprising this address item
|
int |
getDefaultTextualRadix() |
long |
getDivisionValue() |
int |
getMaxDigitCount() |
long |
getUpperDivisionValue() |
containsPrefixBlock, containsSinglePrefixBlock, getBlockMaskPrefixLength, getDivisionPrefixLength, getLeadingBitCount, getPrefixAdjustedRangeString, getString, getTrailingBitCount, getWildcardString, isPrefixBlock, isPrefixed, isSinglePrefixBlock, matchesWithPrefixMask
bitwiseOrRange, getDigitCount, getMaxDigitCount, getMaxValue, getMinPrefixLengthForBlock, getPrefixLengthForSingleBlock, getUpperValue, getValue, hashCode, hasUppercaseVariations, includesMax, includesZero, isBitwiseOrCompatibleWithRange, isBoundedBy, isMaskCompatibleWithRange, isMax, isMultiple, isZero, maskRange, matches, matchesWithMask, matchesWithMask
getBytes, getBytes, getBytes, getDigitCount, getDigitCount, getLowerStandardString, getStandardString, getUpperBytes, getUpperBytes, getUpperBytes, toString
isFullRange
compareTo, getBitsForCount, getBlockSize, getByteCount, getBytes, getBytes, getBytes, getCount, getMinPrefixLengthForBlock, getPrefixCount, getPrefixLengthForSingleBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isMax, isMultiple, isZero
getDigitCount, getLowerStandardString, getMaxDigitCount, getStandardString, isBoundedBy
public IPAddressBitsDivision(long value, long upperValue, int bitCount, int defaultRadix)
value
- upperValue
- bitCount
- defaultRadix
- public IPAddressBitsDivision(long value, long upperValue, int bitCount, int defaultRadix, Integer networkPrefixLength)
value
- upperValue
- bitCount
- defaultRadix
- networkPrefixLength
- public IPAddressBitsDivision(long value, long upperValue, int bitCount, int defaultRadix, IPAddressNetwork<?,?,?,?,?> network, Integer networkPrefixLength)
value
- upperValue
- bitCount
- defaultRadix
- network
- networkPrefixLength
- public int getBitCount()
AddressItem
public long getDivisionValue()
getDivisionValue
in class AddressDivision
public long getUpperDivisionValue()
getUpperDivisionValue
in class AddressDivision
public boolean equals(Object other)
AddressDivisionBase
equals
in class AddressDivision
public int getDefaultTextualRadix()
public int getMaxDigitCount()