Class AddressBitsDivision
java.lang.Object
inet.ipaddr.format.AddressDivisionBase
inet.ipaddr.format.standard.AddressDivision
inet.ipaddr.format.standard.AddressBitsDivision
- All Implemented Interfaces:
AddressGenericDivision, AddressItem, AddressStringDivision, Serializable, Comparable<AddressItem>
An address division for mac
- Author:
- sfoley
- 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
ConstructorsConstructorDescriptionAddressBitsDivision(int value, int bitCount, int defaultRadix) Constructs a division with the given value, the given number of bits (which must be less than 32), and the given radix for printing the values.AddressBitsDivision(int lower, int upper, int bitCount, int defaultRadix) Constructs a division with the given value, the given number of bits (which must be less than 32), 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 itemintlongintlonginthashCode()Methods inherited from class AddressDivision
bitwiseOrRange, getDigitCount, getMaxDigitCount, getMaxValue, getMinPrefixLengthForBlock, getPrefixLengthForSingleBlock, getUpperValue, getValue, 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, containsPrefixBlock, containsSinglePrefixBlock, getByteCount, getCount, getPrefixCount, isFullRange
-
Constructor Details
-
AddressBitsDivision
public AddressBitsDivision(int value, int bitCount, int defaultRadix) Constructs a division with the given value, the given number of bits (which must be less than 32), and the given radix for printing the values.- Parameters:
value-bitCount-defaultRadix-
-
AddressBitsDivision
public AddressBitsDivision(int lower, int upper, int bitCount, int defaultRadix) Constructs a division with the given value, the given number of bits (which must be less than 32), and the given radix for printing the values.- Parameters:
lower-upper-bitCount-defaultRadix-
-
-
Method Details
-
getDivisionValue
public long getDivisionValue()- Specified by:
getDivisionValuein classAddressDivision
-
getUpperDivisionValue
public long getUpperDivisionValue()- Specified by:
getUpperDivisionValuein classAddressDivision
-
getBitCount
public int getBitCount()Description copied from interface:AddressItemProvides the number of bits comprising this address item- Returns:
- the number of bits
-
getMaxDigitCount
public int getMaxDigitCount() -
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
-
hashCode
public int hashCode()- Overrides:
hashCodein classAddressDivision
-
getDefaultTextualRadix
public int getDefaultTextualRadix()
-