- java.lang.Object
-
- inet.ipaddr.format.AddressDivisionBase
-
- inet.ipaddr.format.standard.AddressDivision
-
- inet.ipaddr.format.standard.AddressBitsDivision
-
- All Implemented Interfaces:
AddressGenericDivision
,AddressItem
,AddressStringDivision
,java.io.Serializable
,java.lang.Comparable<AddressItem>
public class AddressBitsDivision extends AddressDivision
An address division for mac- Author:
- sfoley
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class inet.ipaddr.format.standard.AddressDivision
AddressDivision.BitwiseOrResult, AddressDivision.MaskResult
-
-
Constructor Summary
Constructors Constructor Description AddressBitsDivision(int value, int bitCount, int defaultRadix)
AddressBitsDivision(int lower, int upper, int bitCount, int defaultRadix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.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 itemint
getDefaultTextualRadix()
long
getDivisionValue()
int
getMaxDigitCount()
long
getUpperDivisionValue()
int
hashCode()
-
Methods inherited from class inet.ipaddr.format.standard.AddressDivision
bitwiseOrRange, getCount, getDigitCount, getDivisionPrefixCount, getDivisionValueCount, getMaxDigitCount, getMaxValue, getMinPrefixLengthForBlock, getPrefixCount, getPrefixLengthForSingleBlock, getUpperValue, getValue, hasUppercaseVariations, includesMax, includesZero, isBitwiseOrCompatibleWithRange, isBoundedBy, isMaskCompatibleWithRange, isMax, isMultiple, isZero, maskRange, matches, matchesWithMask, matchesWithMask
-
Methods inherited from class inet.ipaddr.format.AddressDivisionBase
getBytes, getBytes, getBytes, getDigitCount, getLowerStandardString, getStandardString, getUpperBytes, getUpperBytes, getUpperBytes, toString
-
Methods inherited from interface inet.ipaddr.format.AddressItem
compareTo, containsPrefixBlock, containsSinglePrefixBlock, getByteCount, isFullRange
-
-
-
-
Method Detail
-
getDivisionValue
public long getDivisionValue()
- Specified by:
getDivisionValue
in classAddressDivision
-
getUpperDivisionValue
public long getUpperDivisionValue()
- Specified by:
getUpperDivisionValue
in classAddressDivision
-
getBitCount
public int getBitCount()
Description copied from interface:AddressItem
Provides the number of bits comprising this address item- Returns:
- the number of bits
-
getMaxDigitCount
public int getMaxDigitCount()
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:AddressDivisionBase
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.- Overrides:
equals
in classAddressDivision
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAddressDivision
-
getDefaultTextualRadix
public int getDefaultTextualRadix()
-
-