public abstract class IPAddressJoinedSegments extends IPAddressDivision
AddressDivision.BitwiseOrResult, AddressDivision.MaskResultEXTENDED_DIGITS| Constructor and Description |
|---|
IPAddressJoinedSegments(int joinedCount,
int value) |
IPAddressJoinedSegments(int joinedCount,
long value,
Integer segmentPrefixLength) |
IPAddressJoinedSegments(int joinedCount,
long lower,
long upper,
Integer segmentPrefixLength) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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 item
|
long |
getDivisionValue() |
int |
getJoinedCount() |
int |
getMaxDigitCount() |
long |
getUpperDivisionValue() |
int |
hashCode()
Returns a hash code value for the object.
|
containsPrefixBlock, containsSinglePrefixBlock, getBlockMaskPrefixLength, getDivisionPrefixLength, getLeadingBitCount, getPrefixAdjustedRangeString, getString, getTrailingBitCount, getWildcardString, isPrefixBlock, isPrefixed, isSinglePrefixBlock, matchesWithPrefixMaskbitwiseOrRange, getDigitCount, getMaxDigitCount, getMaxValue, getMinPrefixLengthForBlock, getPrefixLengthForSingleBlock, getUpperValue, getValue, hasUppercaseVariations, includesMax, includesZero, isBitwiseOrCompatibleWithRange, isBoundedBy, isMaskCompatibleWithRange, isMax, isMultiple, isZero, maskRange, matches, matchesWithMask, matchesWithMaskgetBytes, getBytes, getBytes, getDigitCount, getLowerStandardString, getStandardString, getUpperBytes, getUpperBytes, getUpperBytes, toStringisFullRangecompareTo, getByteCount, getBytes, getBytes, getBytes, getCount, getMinPrefixLengthForBlock, getPrefixCount, getPrefixLengthForSingleBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isMax, isMultiple, isZerogetDigitCount, getLowerStandardString, getMaxDigitCount, getStandardString, isBoundedBypublic IPAddressJoinedSegments(int joinedCount,
int value)
public IPAddressJoinedSegments(int joinedCount,
long value,
Integer segmentPrefixLength)
public IPAddressJoinedSegments(int joinedCount,
long lower,
long upper,
Integer segmentPrefixLength)
public int getJoinedCount()
public long getDivisionValue()
getDivisionValue in class AddressDivisionpublic long getUpperDivisionValue()
getUpperDivisionValue in class AddressDivisionpublic int getBitCount()
AddressItempublic int getMaxDigitCount()
public boolean equals(Object other)
AddressDivisionBaseequals in class AddressDivisionother - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.Object.hashCode(),
HashMappublic int hashCode()
java.lang.ObjectHashMap.
The general contract of hashCode is:
hashCode method
must consistently return the same integer, provided no information
used in equals comparisons on the object is modified.
This integer need not remain consistent from one execution of an
application to another execution of the same application.
equals(Object)
method, then calling the hashCode method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hash tables.
As much as is reasonably practical, the hashCode method defined by
class Object does return distinct integers for distinct
objects. (This is typically implemented by converting the internal
address of the object into an integer, but this implementation
technique is not required by the
Java™ programming language.)
hashCode in class AddressDivisionObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)