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.RangeListNested classes/interfaces inherited from class inet.ipaddr.format.standard.AddressDivisionGrouping
AddressDivisionGrouping.DivisionLengthProvider, AddressDivisionGrouping.DivisionValueProvider, AddressDivisionGrouping.StringOptions -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo 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.intProvides the number of bits comprising this address itemintProvides the number of bytes required for this address item, rounding up if the bit count is not a multiple of 8booleanReturns 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, isSinglePrefixBlockMethods inherited from class inet.ipaddr.format.standard.AddressDivisionGrouping
hashCodeMethods 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, isSequential, isZeroMethods inherited from interface inet.ipaddr.format.AddressDivisionSeries
getBlockCount, getCount, getDivisionStrings, getPrefixCount, getPrefixCount, getSequentialBlockIndex, isPrefixed, isSequentialMethods inherited from interface inet.ipaddr.format.AddressItem
compareTo, getBytes, getBytes, getBytes, getMinPrefixLengthForBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isFullRange, isMax, isMultiple, isZeroMethods inherited from interface inet.ipaddr.format.string.AddressStringDivisionSeries
getDivisionCountMethods inherited from interface inet.ipaddr.format.string.IPAddressStringDivisionSeries
isPrefixed
-
Method Details
-
getByteCount
public int getByteCount()Description copied from interface:AddressItemProvides 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:AddressItemProvides the number of bits comprising this address item- Returns:
- the number of bits
-
isPrefixBlock
public boolean isPrefixBlock()Description copied from class:IPAddressDivisionGroupingReturns 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:
isPrefixBlockin interfaceAddressDivisionSeries- Specified by:
isPrefixBlockin interfaceIPAddressStringDivisionSeries- Overrides:
isPrefixBlockin classIPAddressDivisionGrouping- Returns:
-
toString
- Overrides:
toStringin classAddressDivisionGroupingBase
-
equals
Description copied from class:AddressDivisionGroupingBaseTwo 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:
equalsin classIPAddressDivisionGrouping
-