public static class IPv6AddressSection.IPv6v4MixedAddressSection extends IPAddressDivisionGrouping
IPAddressDivisionGrouping.Range, IPAddressDivisionGrouping.RangeListAddressDivisionGrouping.DivisionLengthProvider, AddressDivisionGrouping.DivisionValueProvider, AddressDivisionGrouping.StringOptions| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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 item
|
int |
getByteCount()
Provides the number of bytes required for this address item, rounding up if the bit count is not a multiple of 8
|
boolean |
isPrefixBlock()
Returns whether this address section represents a subnet block of addresses associated its prefix length.
|
String |
toString()
Returns a string representation of the object.
|
containsPrefixBlock, containsSinglePrefixBlock, getDivision, getLeadingBitCount, getNetwork, getNetworkPrefixLength, getPrefixLength, getPrefixLengthForSingleBlock, getTrailingBitCount, getZeroRangeSegments, getZeroSegments, includesZeroHost, isMore, isSinglePrefixBlockhashCodegetBytes, getBytes, getBytes, getCount, getDivisionCount, getDivisionStrings, getMinPrefixLengthForBlock, getPrefixCount, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isFullRange, isMax, isMultiple, isPrefixed, isZerogetBlockCount, getCount, getDivisionStrings, getPrefixCount, getPrefixCount, getSequentialBlockIndex, isPrefixed, isSequentialcompareTo, getBytes, getBytes, getBytes, getMinPrefixLengthForBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isFullRange, isMax, isMultiple, isZeroisPrefixedgetDivisionCountpublic int getByteCount()
AddressItempublic int getBitCount()
AddressItempublic boolean isPrefixBlock()
IPAddressDivisionGroupingAddressNetwork.getPrefixConfiguration() is set to consider all prefixes as subnets, this returns true for any grouping with prefix length.isPrefixBlock in interface AddressDivisionSeriesisPrefixBlock in interface IPAddressStringDivisionSeriesisPrefixBlock in class IPAddressDivisionGroupingpublic String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class AddressDivisionGroupingBasepublic boolean equals(Object o)
AddressDivisionGroupingBaseequals in class IPAddressDivisionGroupingo - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.Object.hashCode(),
HashMap