- 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
,java.io.Serializable
,java.lang.Comparable<AddressItem>
- Enclosing class:
- IPv6AddressSection
public static class IPv6AddressSection.IPv6v4MixedAddressSection extends IPAddressDivisionGrouping
- See Also:
- Serialized Form
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
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
getBitCount()
Provides the number of bits comprising this address itemint
getByteCount()
Provides the number of bytes required for this address item, rounding up if the bit count is not a multiple of 8boolean
isPrefixBlock()
Returns whether this address section represents a subnet block of addresses associated its prefix length.java.lang.String
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, isSequential, 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 Detail
-
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
public java.lang.String toString()
- Overrides:
toString
in classAddressDivisionGroupingBase
-
equals
public boolean equals(java.lang.Object o)
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
-
-