java.lang.Object
inet.ipaddr.format.AddressDivisionGroupingBase
inet.ipaddr.format.standard.AddressDivisionGrouping
inet.ipaddr.format.standard.IPAddressDivisionGrouping
inet.ipaddr.ipv6.IPv6AddressSection.IPv6v4MixedAddressSection
- All Implemented Interfaces:
AddressDivisionSeries
,AddressItem
,IPAddressDivisionSeries
,AddressStringDivisionSeries
,IPAddressStringDivisionSeries
,Serializable
,Comparable<AddressItem>
- Enclosing class:
IPv6AddressSection
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class inet.ipaddr.format.standard.IPAddressDivisionGrouping
IPAddressDivisionGrouping.Range, IPAddressDivisionGrouping.RangeList
Nested classes/interfaces inherited from class inet.ipaddr.format.standard.AddressDivisionGrouping
AddressDivisionGrouping.DivisionLengthProvider, AddressDivisionGrouping.DivisionValueProvider, AddressDivisionGrouping.StringOptions
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Two groupings are equal if: - they match type/version (ipv4, ipv6, mac, or a specific grouping class) - they match division counts - each division matches bit counts - each division matches their specific grouping class - each division matches values Prefix lengths, for those groupings and/or divisionsS that have them, are ignored.int
Provides the number of bits comprising this address itemint
Provides the number of bytes required for this address item, rounding up if the bit count is not a multiple of 8boolean
Returns whether this address section represents a subnet block of addresses associated its prefix length.toString()
Methods inherited from class inet.ipaddr.format.standard.IPAddressDivisionGrouping
containsPrefixBlock, containsSinglePrefixBlock, getDivision, getLeadingBitCount, getNetwork, getNetworkPrefixLength, getPrefixLength, getPrefixLengthForSingleBlock, getTrailingBitCount, getZeroRangeSegments, getZeroSegments, includesZeroHost, isMore, isSinglePrefixBlock
Methods inherited from class inet.ipaddr.format.standard.AddressDivisionGrouping
hashCode
Methods inherited from class inet.ipaddr.format.AddressDivisionGroupingBase
getBytes, getBytes, getBytes, getCount, getDivisionCount, getDivisionStrings, getMinPrefixLengthForBlock, getPrefixCount, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isFullRange, isMax, isMultiple, isPrefixed, isZero
Methods inherited from interface inet.ipaddr.format.AddressDivisionSeries
getBlockCount, getCount, getDivisionStrings, getPrefixCount, getPrefixCount, getSequentialBlockIndex, isPrefixed, isSequential
Methods inherited from interface inet.ipaddr.format.AddressItem
compareTo, getBytes, getBytes, getBytes, getMinPrefixLengthForBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isFullRange, isMax, isMultiple, isZero
Methods inherited from interface inet.ipaddr.format.string.AddressStringDivisionSeries
getDivisionCount
Methods inherited from interface inet.ipaddr.format.string.IPAddressStringDivisionSeries
isPrefixed
-
Method Details
-
getByteCount
public int getByteCount()Description copied from interface:AddressItem
Provides the number of bytes required for this address item, rounding up if the bit count is not a multiple of 8- Returns:
- the number of bytes
-
getBitCount
public int getBitCount()Description copied from interface:AddressItem
Provides the number of bits comprising this address item- Returns:
- the number of bits
-
isPrefixBlock
public boolean isPrefixBlock()Description copied from class:IPAddressDivisionGrouping
Returns whether this address section represents a subnet block of addresses associated its prefix length. Returns false if it has no prefix length, if it is a single address with a prefix length (ie not a subnet), or if it is a range of addresses that does not include the entire subnet block for its prefix length. IfAddressNetwork.getPrefixConfiguration()
is set to consider all prefixes as subnets, this returns true for any grouping with prefix length.- Specified by:
isPrefixBlock
in interfaceAddressDivisionSeries
- Specified by:
isPrefixBlock
in interfaceIPAddressStringDivisionSeries
- Overrides:
isPrefixBlock
in classIPAddressDivisionGrouping
- Returns:
-
toString
- Overrides:
toString
in classAddressDivisionGroupingBase
-
equals
Description copied from class:AddressDivisionGroupingBase
Two groupings are equal if: - they match type/version (ipv4, ipv6, mac, or a specific grouping class) - they match division counts - each division matches bit counts - each division matches their specific grouping class - each division matches values Prefix lengths, for those groupings and/or divisionsS that have them, are ignored.- Overrides:
equals
in classIPAddressDivisionGrouping
-