- java.lang.Object
-
- All Implemented Interfaces:
AddressComponent,AddressSegment,AddressComponentRange,AddressGenericDivision,AddressItem,AddressItemRange,IPAddressGenericDivision,AddressStringDivision,IPAddressStringDivision,java.io.Serializable,java.lang.Comparable<AddressItem>
- Direct Known Subclasses:
IPv4AddressSegment,IPv6AddressSegment
public abstract class IPAddressSegment extends IPAddressDivision implements AddressSegment
This represents a single segment of an IP address. For IPv4, segments are 1 byte. For IPv6, they are two bytes. IPAddressSegment objects are immutable and thus also thread-safe.- Author:
- sfoley
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class inet.ipaddr.format.standard.AddressDivision
AddressDivision.BitwiseOrResult, AddressDivision.MaskResult
-
-
Field Summary
-
Fields inherited from class inet.ipaddr.format.AddressDivisionBase
EXTENDED_DIGITS
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddressDivision.BitwiseOrResultbitwiseOrRange(int maskValue)static intgetBitCount(IPAddress.IPVersion version)static intgetByteCount(IPAddress.IPVersion version)java.math.BigIntegergetCount()The count of possible distinct values for this AddressComponent.static intgetDefaultTextualRadix(IPAddress.IPVersion version)longgetDivisionValue()returns the lower value as a long, although for individual segmentsgetSegmentValue()provides the same value as an intabstract IPAddress.IPVersiongetIPVersion()abstract java.lang.Iterable<? extends IPAddressSegment>getIterable()Useful for using an instance in a "for-each loop".abstract IPAddressSegmentgetLower()If this segment represents a range of values, returns a segment representing just the lowest value in the range, otherwise returns this.static intgetMaxSegmentValue(IPAddress.IPVersion version)longgetMaxValue()intgetMinPrefixLengthForBlock()Returns the smallest prefix length possible such that this item includes the block of all values for that prefix length.abstract IPAddressNetwork<?,?,?,?,?>getNetwork()Returns the network object for components of the same version (eg IPv4, IPv6 and MAC each have their own network object)java.math.BigIntegergetPrefixCount(int segmentPrefixLength)The count of the number of distinct values within the prefix part of the address item, the bits that appear within the prefix length.intgetPrefixValueCount()Counts the number of prefixes in this address segment.intgetPrefixValueCount(int segmentPrefixLength)Returns the count of prefix values in this address segment for the given prefix bit count.java.lang.IntegergetSegmentPrefixLength()intgetSegmentValue()returns the lower valueabstract IPAddressSegmentgetUpper()If this segment represents a range of values, returns a segment representing just the highest value in the range, otherwise returns this.longgetUpperDivisionValue()returns the lower upper value as a long, although for individual segmentsgetUpperSegmentValue()provides the same value as an intintgetUpperSegmentValue()returns the upper valueintgetValueCount()Returns the count of values in this address segment.inthashCode()booleanincludesMax()Returns whether this item includes the maximum possible value for the address type or version within its rangebooleanincludesZero()Returns whether this item includes the value of zero within its rangebooleanisBoundedBy(int value)Returns true if the possible values of this division fall below the given value.booleanisIPv4()booleanisIPv6()booleanisMultiple()Whether this represents multiple potential values (eg a prefixed address or a segment representing a range of values)booleanisPrefixBlock()Returns whether the division range includes the block of values for its prefix lengthabstract java.util.Iterator<? extends IPAddressSegment>iterator()Iterates through the individual address components.AddressDivision.MaskResultmaskRange(int maskValue)booleanmatches(int value)booleanmatchesWithMask(int value, int mask)booleanmatchesWithMask(int lowerValue, int upperValue, int mask)booleanmatchesWithPrefixMask(int value, java.lang.Integer segmentPrefixLength)abstract java.util.Iterator<? extends IPAddressSegment>prefixBlockIterator()Iterates through the individual prefix blocks.abstract java.util.Iterator<? extends IPAddressSegment>prefixBlockIterator(int prefixLength)Iterates through the individual prefix blocks according to the given segment prefix length.abstract AddressComponentSpliterator<? extends IPAddressSegment>prefixBlockSpliterator()Partitions and traverses through the individual prefix blocks of this segment for its prefix length.abstract AddressComponentSpliterator<? extends IPAddressSegment>prefixBlockSpliterator(int prefixLength)Partitions and traverses through the individual prefix blocks for the given prefix length.abstract java.util.stream.Stream<? extends IPAddressSegment>prefixBlockStream()Returns a sequential stream of the individual prefix blocks of this segment.abstract java.util.stream.Stream<? extends IPAddressSegment>prefixBlockStream(int prefixLength)Returns a sequential stream of the individual prefix blocks for the given prefix length.booleanprefixContains(IPAddressSegment other)Using the prefix length of this segment, or the whole segment if it has no prefix length, returns whether the prefix bit value ranges contain the same bits of the given segment.booleanprefixContains(IPAddressSegment other, int prefixLength)Returns whether the given prefix bit value ranges contain the same bits of the given segment.booleanprefixEquals(AddressSegment other, int prefixLength)Returns whether the given prefix bits match the same bits of the given segment.booleanprefixEquals(IPAddressSegment other)abstract java.util.Iterator<? extends IPAddressSegment>prefixIterator()Iterates through the individual prefixes.abstract AddressComponentSpliterator<? extends IPAddressSegment>prefixSpliterator()Partitions and traverses through the individual prefixes of this segment for its prefix length.abstract java.util.stream.Stream<? extends IPAddressSegment>prefixStream()Returns a sequential stream of the individual prefixes of this segment.abstract IPAddressSegmentremovePrefixLength()Deprecated.usewithoutPrefixLength()andtoZeroHost()abstract IPAddressSegmentremovePrefixLength(boolean zeroed)Deprecated.usetoZeroHost()andwithoutPrefixLength()abstract IPAddressSegmentreverseBits(boolean perByte)Returns a new AddressComponent with the bits reversed.abstract IPAddressSegmentreverseBytes()Returns an AddressComponent with the bytes reversed.abstract AddressComponentSpliterator<? extends IPAddressSegment>spliterator()Partitions and traverses through the individual address components.abstract java.util.stream.Stream<? extends IPAddressSegment>stream()Returns a sequential stream of the individual address components.java.lang.StringtoHexString(boolean with0xPrefix)Writes this address component as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.abstract IPAddressSegmenttoHostSegment(java.lang.Integer segmentPrefixLength)used by getHostSection, seeIPAddressSegmentSeries.getHostSection(int)IPAddressSegmenttoNetworkSegment(java.lang.Integer segmentPrefixLength)used by constructors of IPAddressSection, seeIPAddressSegmentSeries.getNetworkSection(int, boolean)abstract IPAddressSegmenttoNetworkSegment(java.lang.Integer segmentPrefixLength, boolean withPrefixLength)used by getNetworkSection and by constructors of IPAddressSection, seeIPAddressSegmentSeries.getNetworkSection(int, boolean)java.lang.StringtoNormalizedString()Produces a string that is consistent for all address components of the same type and version, and is also similar to the canonical stringAddressSegmentSeries.toCanonicalString()inAddressComponentinstances that are alsoAddressSegmentSeriesinstances.java.lang.StringtoNormalizedString(IPAddressSection.IPStringOptions options)abstract IPAddressSegmenttoZeroHost()Returns a segment with the same network bits as this segment, but with the host bits changed to 0.abstract IPAddressSegmentwithoutPrefixLength()Returns a segment with the same values but without a prefix length.-
Methods inherited from class inet.ipaddr.format.standard.IPAddressDivision
containsPrefixBlock, containsSinglePrefixBlock, getBlockMaskPrefixLength, getDivisionPrefixLength, getLeadingBitCount, getPrefixAdjustedRangeString, getString, getTrailingBitCount, getWildcardString, isPrefixed, isSinglePrefixBlock, matchesWithPrefixMask
-
Methods inherited from class inet.ipaddr.format.standard.AddressDivision
bitwiseOrRange, equals, getDigitCount, getMaxDigitCount, getPrefixLengthForSingleBlock, getUpperValue, getValue, hasUppercaseVariations, isBitwiseOrCompatibleWithRange, isMaskCompatibleWithRange, isMax, isZero, maskRange, matches, matchesWithMask, matchesWithMask
-
Methods inherited from class inet.ipaddr.format.AddressDivisionBase
getBytes, getBytes, getBytes, getDigitCount, getDigitCount, getLowerStandardString, getStandardString, getUpperBytes, getUpperBytes, getUpperBytes, toString
-
Methods inherited from interface inet.ipaddr.format.AddressItem
compareTo, containsPrefixBlock, containsSinglePrefixBlock, getBitCount, getByteCount, getBytes, getBytes, getBytes, getPrefixLengthForSingleBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, isMax, isZero
-
Methods inherited from interface inet.ipaddr.AddressSegment
contains, equals, getMaxSegmentValue, isOneBit, overlaps, testBit
-
Methods inherited from interface inet.ipaddr.format.string.AddressStringDivision
getDigitCount, getLowerStandardString, getMaxDigitCount, getStandardString
-
Methods inherited from interface inet.ipaddr.format.IPAddressGenericDivision
isFullRange
-
Methods inherited from interface inet.ipaddr.format.string.IPAddressStringDivision
getBitCount
-
-
-
-
Method Detail
-
getNetwork
public abstract IPAddressNetwork<?,?,?,?,?> getNetwork()
Description copied from interface:AddressComponentReturns the network object for components of the same version (eg IPv4, IPv6 and MAC each have their own network object)- Specified by:
getNetworkin interfaceAddressComponent- Returns:
-
isIPv4
public boolean isIPv4()
-
isIPv6
public boolean isIPv6()
-
getIPVersion
public abstract IPAddress.IPVersion getIPVersion()
-
getMinPrefixLengthForBlock
public int getMinPrefixLengthForBlock()
Description copied from interface:AddressItemReturns the smallest prefix length possible such that this item includes the block of all values for that prefix length.If the entire range can be dictated this way, then this method returns the same value as
AddressItem.getPrefixLengthForSingleBlock(). Otherwise, this method will return the minimal possible prefix that can be paired with this address, whileAddressItem.getPrefixLengthForSingleBlock()will return null.In cases where the final bit is constant so there is no such block, this returns the bit count.
- Specified by:
getMinPrefixLengthForBlockin interfaceAddressItem- Overrides:
getMinPrefixLengthForBlockin classAddressDivision- Returns:
- the prefix length
-
getMaxSegmentValue
public static int getMaxSegmentValue(IPAddress.IPVersion version)
-
isPrefixBlock
public boolean isPrefixBlock()
Description copied from interface:IPAddressStringDivisionReturns whether the division range includes the block of values for its prefix length- Specified by:
isPrefixBlockin interfaceIPAddressStringDivision- Overrides:
isPrefixBlockin classIPAddressDivision- Returns:
- whether the division range includes the block of values for the division prefix length, or false if the division has no prefix length
-
toNetworkSegment
public IPAddressSegment toNetworkSegment(java.lang.Integer segmentPrefixLength)
used by constructors of IPAddressSection, seeIPAddressSegmentSeries.getNetworkSection(int, boolean)
-
toNetworkSegment
public abstract IPAddressSegment toNetworkSegment(java.lang.Integer segmentPrefixLength, boolean withPrefixLength)
used by getNetworkSection and by constructors of IPAddressSection, seeIPAddressSegmentSeries.getNetworkSection(int, boolean)
-
toHostSegment
public abstract IPAddressSegment toHostSegment(java.lang.Integer segmentPrefixLength)
used by getHostSection, seeIPAddressSegmentSeries.getHostSection(int)
-
maskRange
public AddressDivision.MaskResult maskRange(int maskValue)
-
bitwiseOrRange
public AddressDivision.BitwiseOrResult bitwiseOrRange(int maskValue)
-
getLower
public abstract IPAddressSegment getLower()
If this segment represents a range of values, returns a segment representing just the lowest value in the range, otherwise returns this.- Specified by:
getLowerin interfaceAddressComponentRange- Specified by:
getLowerin interfaceAddressSegment- Returns:
-
getUpper
public abstract IPAddressSegment getUpper()
If this segment represents a range of values, returns a segment representing just the highest value in the range, otherwise returns this.- Specified by:
getUpperin interfaceAddressComponentRange- Specified by:
getUpperin interfaceAddressSegment- Returns:
-
getIterable
public abstract java.lang.Iterable<? extends IPAddressSegment> getIterable()
Description copied from interface:AddressComponentRangeUseful for using an instance in a "for-each loop". Otherwise just callAddressComponentRange.iterator()directly.- Specified by:
getIterablein interfaceAddressComponentRange- Specified by:
getIterablein interfaceAddressSegment- Returns:
-
iterator
public abstract java.util.Iterator<? extends IPAddressSegment> iterator()
Description copied from interface:AddressComponentRangeIterates through the individual address components.An address component can represent an individual segment, address, or section, or it can represent multiple, typically a subnet of addresses or a range of segment or section values.
Call
AddressItem.isMultiple()to determine if this instance represents multiple, orAddressItem.getCount()for the count.- Specified by:
iteratorin interfaceAddressComponentRange- Specified by:
iteratorin interfaceAddressSegment- Returns:
-
spliterator
public abstract AddressComponentSpliterator<? extends IPAddressSegment> spliterator()
Description copied from interface:AddressComponentRangePartitions and traverses through the individual address components.- Specified by:
spliteratorin interfaceAddressComponent- Specified by:
spliteratorin interfaceAddressComponentRange- Specified by:
spliteratorin interfaceAddressSegment- Returns:
-
stream
public abstract java.util.stream.Stream<? extends IPAddressSegment> stream()
Description copied from interface:AddressComponentRangeReturns a sequential stream of the individual address components. For a parallel stream, callBaseStream.parallel()on the returned stream.- Specified by:
streamin interfaceAddressComponentRange- Specified by:
streamin interfaceAddressSegment- Returns:
-
prefixBlockIterator
public abstract java.util.Iterator<? extends IPAddressSegment> prefixBlockIterator()
Iterates through the individual prefix blocks.If the series has no prefix length, then this is equivalent to
iterator()
-
prefixBlockSpliterator
public abstract AddressComponentSpliterator<? extends IPAddressSegment> prefixBlockSpliterator()
Partitions and traverses through the individual prefix blocks of this segment for its prefix length.- Returns:
-
prefixBlockStream
public abstract java.util.stream.Stream<? extends IPAddressSegment> prefixBlockStream()
Returns a sequential stream of the individual prefix blocks of this segment. For a parallel stream, callBaseStream.parallel()on the returned stream.- Returns:
-
prefixIterator
public abstract java.util.Iterator<? extends IPAddressSegment> prefixIterator()
Iterates through the individual prefixes.If the series has no prefix length, then this is equivalent to
iterator()
-
prefixSpliterator
public abstract AddressComponentSpliterator<? extends IPAddressSegment> prefixSpliterator()
Partitions and traverses through the individual prefixes of this segment for its prefix length.- Returns:
-
prefixStream
public abstract java.util.stream.Stream<? extends IPAddressSegment> prefixStream()
Returns a sequential stream of the individual prefixes of this segment. For a parallel stream, callBaseStream.parallel()on the returned stream.- Returns:
-
prefixBlockIterator
public abstract java.util.Iterator<? extends IPAddressSegment> prefixBlockIterator(int prefixLength)
Iterates through the individual prefix blocks according to the given segment prefix length. Any existing prefix length is disregarded.
-
prefixBlockSpliterator
public abstract AddressComponentSpliterator<? extends IPAddressSegment> prefixBlockSpliterator(int prefixLength)
Partitions and traverses through the individual prefix blocks for the given prefix length.- Returns:
-
prefixBlockStream
public abstract java.util.stream.Stream<? extends IPAddressSegment> prefixBlockStream(int prefixLength)
Returns a sequential stream of the individual prefix blocks for the given prefix length. For a parallel stream, callBaseStream.parallel()on the returned stream.- Returns:
-
getBitCount
public static int getBitCount(IPAddress.IPVersion version)
-
getByteCount
public static int getByteCount(IPAddress.IPVersion version)
-
getDefaultTextualRadix
public static int getDefaultTextualRadix(IPAddress.IPVersion version)
-
matches
public boolean matches(int value)
- Specified by:
matchesin interfaceAddressSegment
-
matchesWithPrefixMask
public boolean matchesWithPrefixMask(int value, java.lang.Integer segmentPrefixLength)
-
matchesWithMask
public boolean matchesWithMask(int value, int mask)- Specified by:
matchesWithMaskin interfaceAddressSegment
-
matchesWithMask
public boolean matchesWithMask(int lowerValue, int upperValue, int mask)- Specified by:
matchesWithMaskin interfaceAddressSegment
-
getValueCount
public int getValueCount()
Description copied from interface:AddressSegmentReturns the count of values in this address segment.- Specified by:
getValueCountin interfaceAddressSegment- Returns:
- the same value as
getCount()as an integer
-
getPrefixValueCount
public int getPrefixValueCount()
Counts the number of prefixes in this address segment.If this segment has no prefix length, this is equivalent to
getValueCount()- Returns:
-
getCount
public java.math.BigInteger getCount()
Description copied from interface:AddressItemThe count of possible distinct values for this AddressComponent. If not multiple, this is 1. Note that an AddressDivisionSeries with no divisions or AddressSection with no segments has a single value of 0. For instance, if this is the ip address series subnet 0::/64, then the count is 2 to the power of 64. If this is a the segment 3-7, then the count is 5.- Specified by:
getCountin interfaceAddressItem- Returns:
-
getPrefixCount
public java.math.BigInteger getPrefixCount(int segmentPrefixLength)
Description copied from interface:AddressItemThe count of the number of distinct values within the prefix part of the address item, the bits that appear within the prefix length.- Specified by:
getPrefixCountin interfaceAddressItem- Returns:
-
getPrefixValueCount
public int getPrefixValueCount(int segmentPrefixLength)
Description copied from interface:AddressSegmentReturns the count of prefix values in this address segment for the given prefix bit count.- Specified by:
getPrefixValueCountin interfaceAddressSegment- Returns:
- the count of values
-
getMaxValue
public long getMaxValue()
- Overrides:
getMaxValuein classAddressDivision
-
isMultiple
public boolean isMultiple()
Description copied from interface:AddressItemWhether this represents multiple potential values (eg a prefixed address or a segment representing a range of values)- Specified by:
isMultiplein interfaceAddressItem- Overrides:
isMultiplein classAddressDivision- Returns:
- whether this segment represents multiple values
-
getSegmentValue
public int getSegmentValue()
returns the lower value- Specified by:
getSegmentValuein interfaceAddressSegment
-
getUpperSegmentValue
public int getUpperSegmentValue()
returns the upper value- Specified by:
getUpperSegmentValuein interfaceAddressSegment
-
getDivisionValue
public long getDivisionValue()
returns the lower value as a long, although for individual segmentsgetSegmentValue()provides the same value as an int- Specified by:
getDivisionValuein classAddressDivision
-
getUpperDivisionValue
public long getUpperDivisionValue()
returns the lower upper value as a long, although for individual segmentsgetUpperSegmentValue()provides the same value as an int- Specified by:
getUpperDivisionValuein classAddressDivision
-
reverseBits
public abstract IPAddressSegment reverseBits(boolean perByte)
Description copied from interface:AddressComponentReturns a new AddressComponent with the bits reversed. If this component represents a range of values that cannot be reversed, then this throwsIncompatibleAddressException. In a range the most significant bits stay constant while the least significant bits range over different values, so reversing that scenario results in a series of non-consecutive values, in most cases, which cannot be represented with a single AddressComponent object.In such cases where isMultiple() is true, call iterator(), getLower(), getUpper() or some other methods to break the series down into a series representing a single value.
- Specified by:
reverseBitsin interfaceAddressComponent- Specified by:
reverseBitsin interfaceAddressSegment- Parameters:
perByte- if true, only the bits in each byte are reversed, if false, then all bits in the component are reversed- Returns:
-
reverseBytes
public abstract IPAddressSegment reverseBytes()
Description copied from interface:AddressComponentReturns an AddressComponent with the bytes reversed. If this component represents a range of values that cannot be reversed, then this throwsIncompatibleAddressException. In a range the most significant bits stay constant while the least significant bits range over different values, so reversing that scenario results in a series of non-consecutive values, in most cases, which cannot be represented with a single AddressComponent object.In such cases where isMultiple() is true, call iterator(), getLower(), getUpper() or some other methods to break the series down into a series representing a single value.
- Specified by:
reverseBytesin interfaceAddressComponent- Specified by:
reverseBytesin interfaceAddressSegment- Returns:
-
removePrefixLength
@Deprecated public abstract IPAddressSegment removePrefixLength()
Deprecated.usewithoutPrefixLength()andtoZeroHost()- Returns:
-
toZeroHost
public abstract IPAddressSegment toZeroHost()
Returns a segment with the same network bits as this segment, but with the host bits changed to 0.If there is no prefix length associated with this segment, returns an all-zero segment.
This is nearly equivalent to doing the mask (see
maskRange(int)) of this segment with the network mask for the given prefix length, but when applying a mask to a range of values you can have a non-sequential result.With this method, if the resulting series has a range of values, then the resulting series range boundaries will have host values of 0, but not necessarily all the intervening values.
For instance, the 1-byte segment range 4-7 with prefix length 6, when masked with 252 (the network mask) results in just the single value 4, matching the result of this method. The 1-byte segment range 4-8 with prefix length 6, when masked with 252 results in the two non-sequential values, 4 and 8, but the result of this method with prefix length 6 results in the range 4-8, the same as the original segment.
The default behaviour is that the resultant series will have the same prefix length. The resultant series will not have a prefix length if
AddressNetwork.getPrefixConfiguration()isAddressNetwork.PrefixConfiguration.ALL_PREFIXED_ADDRESSES_ARE_SUBNETS.- Returns:
-
removePrefixLength
@Deprecated public abstract IPAddressSegment removePrefixLength(boolean zeroed)
Deprecated.usetoZeroHost()andwithoutPrefixLength()- Parameters:
zeroed-- Returns:
-
withoutPrefixLength
public abstract IPAddressSegment withoutPrefixLength()
Returns a segment with the same values but without a prefix length.- Returns:
-
isBoundedBy
public boolean isBoundedBy(int value)
Description copied from class:AddressDivisionReturns true if the possible values of this division fall below the given value.- Specified by:
isBoundedByin interfaceAddressStringDivision- Overrides:
isBoundedByin classAddressDivision
-
getSegmentPrefixLength
public java.lang.Integer getSegmentPrefixLength()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAddressDivision
-
prefixEquals
public boolean prefixEquals(IPAddressSegment other)
-
prefixEquals
public boolean prefixEquals(AddressSegment other, int prefixLength)
Description copied from interface:AddressSegmentReturns whether the given prefix bits match the same bits of the given segment.- Specified by:
prefixEqualsin interfaceAddressSegment- Returns:
-
prefixContains
public boolean prefixContains(IPAddressSegment other)
Using the prefix length of this segment, or the whole segment if it has no prefix length, returns whether the prefix bit value ranges contain the same bits of the given segment.- Parameters:
other-- Returns:
-
prefixContains
public boolean prefixContains(IPAddressSegment other, int prefixLength)
Returns whether the given prefix bit value ranges contain the same bits of the given segment.- Parameters:
other-prefixLength-- Returns:
-
includesZero
public boolean includesZero()
Description copied from interface:AddressItemReturns whether this item includes the value of zero within its range- Specified by:
includesZeroin interfaceAddressItem- Overrides:
includesZeroin classAddressDivision- Returns:
- whether this item includes the value of zero within its range
-
includesMax
public boolean includesMax()
Description copied from interface:AddressItemReturns whether this item includes the maximum possible value for the address type or version within its range- Specified by:
includesMaxin interfaceAddressItem- Overrides:
includesMaxin classAddressDivision- Returns:
- whether this item includes the maximum possible value within its range
-
toHexString
public java.lang.String toHexString(boolean with0xPrefix)
Description copied from interface:AddressComponentWrites this address component as a single hexadecimal value with always the exact same number of characters, with or without a preceding 0x prefix.If this component represents a range of values outside of the network prefix length, then this is printed as a range of two hex values.
For instance, for IPv4 addresses there are 8 hex characters, for IPv6 addresses there are 32 hex characters.
- Specified by:
toHexStringin interfaceAddressComponent
-
toNormalizedString
public java.lang.String toNormalizedString()
Description copied from interface:AddressComponentProduces a string that is consistent for all address components of the same type and version, and is also similar to the canonical stringAddressSegmentSeries.toCanonicalString()inAddressComponentinstances that are alsoAddressSegmentSeriesinstances.- Specified by:
toNormalizedStringin interfaceAddressComponent- Returns:
-
toNormalizedString
public java.lang.String toNormalizedString(IPAddressSection.IPStringOptions options)
-
-