Class IPAddressBitsDivision
java.lang.Object
inet.ipaddr.format.AddressDivisionBase
inet.ipaddr.format.standard.AddressDivision
inet.ipaddr.format.standard.IPAddressDivision
inet.ipaddr.format.standard.IPAddressBitsDivision
- All Implemented Interfaces:
AddressGenericDivision, AddressItem, IPAddressGenericDivision, AddressStringDivision, IPAddressStringDivision, Serializable, Comparable<AddressItem>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AddressDivision
AddressDivision.BitwiseOrResult, AddressDivision.MaskResult -
Field Summary
Fields inherited from class AddressDivisionBase
EXTENDED_DIGITS -
Constructor Summary
ConstructorsConstructorDescriptionIPAddressBitsDivision(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, 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.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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo 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.intProvides the number of bits comprising this address itemintlongintlongMethods inherited from class IPAddressDivision
containsPrefixBlock, containsSinglePrefixBlock, getBlockMaskPrefixLength, getDivisionPrefixLength, getLeadingBitCount, getPrefixAdjustedRangeString, getString, getTrailingBitCount, getWildcardString, isPrefixBlock, isPrefixed, isSinglePrefixBlock, matchesWithPrefixMaskMethods inherited from class AddressDivision
bitwiseOrRange, getDigitCount, getMaxDigitCount, getMaxValue, getMinPrefixLengthForBlock, getPrefixLengthForSingleBlock, getUpperValue, getValue, hashCode, hasUppercaseVariations, includesMax, includesZero, isBitwiseOrCompatibleWithRange, isBoundedBy, isMaskCompatibleWithRange, isMax, isMultiple, isZero, maskRange, matches, matchesWithMask, matchesWithMaskMethods inherited from class AddressDivisionBase
getBytes, getBytes, getBytes, getDigitCount, getDigitCount, getLowerStandardString, getStandardString, getUpperBytes, getUpperBytes, getUpperBytes, toStringMethods inherited from interface AddressItem
compareTo, getByteCount, getBytes, getBytes, getBytes, getCount, getMinPrefixLengthForBlock, getPrefixCount, getPrefixLengthForSingleBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isMax, isMultiple, isZeroMethods inherited from interface AddressStringDivision
getDigitCount, getLowerStandardString, getMaxDigitCount, getStandardString, isBoundedByMethods inherited from interface IPAddressGenericDivision
isFullRange
-
Constructor Details
-
IPAddressBitsDivision
public 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.- Parameters:
value-upperValue-bitCount-defaultRadix-
-
IPAddressBitsDivision
public 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.- Parameters:
value-upperValue-bitCount-defaultRadix-networkPrefixLength-
-
IPAddressBitsDivision
public 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.- Parameters:
value-upperValue-bitCount-defaultRadix-network-networkPrefixLength-
-
-
Method Details
-
getBitCount
public int getBitCount()Description copied from interface:AddressItemProvides the number of bits comprising this address item- Returns:
- the number of bits
-
getDivisionValue
public long getDivisionValue()- Specified by:
getDivisionValuein classAddressDivision
-
getUpperDivisionValue
public long getUpperDivisionValue()- Specified by:
getUpperDivisionValuein classAddressDivision
-
equals
Description copied from class:AddressDivisionBaseTwo 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.- Overrides:
equalsin classAddressDivision
-
getDefaultTextualRadix
public int getDefaultTextualRadix() -
getMaxDigitCount
public int getMaxDigitCount()
-