public interface AddressSection extends AddressSegmentSeries
| Modifier and Type | Method and Description |
|---|---|
AddressSection |
adjustPrefixBySegment(boolean nextSegment)
Increases or decreases prefix length to the next segment boundary.
|
AddressSection |
adjustPrefixLength(int adjustment)
Increases or decreases prefix length by the given increment.
|
AddressSection |
applyPrefixLength(int networkPrefixLength)
Applies the given prefix length to create a new segment series representing all segment series starting with the same prefix.
|
boolean |
contains(AddressSection other)
Determines if one section contains another.
|
java.lang.Iterable<? extends AddressSection> |
getIterable()
Useful for using an instance in a "for-each loop".
|
AddressSection |
getLower()
If this instance represents multiple address components, returns the one with the lowest numeric value.
|
AddressSection |
getSection(int index)
Gets the subsection from the series starting from the given index
|
AddressSection |
getSection(int index,
int endIndex)
Gets the subsection from the series starting from the given index and ending just before the give endIndex
|
AddressSection |
getUpper()
If this instance represents multiple address components, returns the one with the highest numeric value.
|
java.util.Iterator<? extends AddressSection> |
iterator()
An address component can represent a single segment, address, or section, or it can represent multiple,
typically a subnet or range of segment, address, or section values.
|
AddressSection |
removePrefixLength()
Removes the prefix.
|
AddressSection |
reverseBits(boolean perByte)
Returns a new segment series with the bits reversed.
|
AddressSection |
reverseBytes()
Returns a new segment series with the bytes reversed.
|
AddressSection |
reverseBytesPerSegment()
Returns a new segment series with the bytes reversed within each segment.
|
AddressSection |
reverseSegments()
Returns a new segment series with the segments reversed.
|
AddressSection |
setPrefixLength(int prefixLength)
Sets the prefix length.
|
getBitsPerSegment, getBytesPerSegment, getSegment, getSegmentCount, getSegments, getSegments, getSegments, segmentsIterator, toCanonicalString, toCompressedStringgetDivision, getEquivalentPrefix, getMinPrefix, getPrefixLength, isMore, isMultipleByPrefix, isPrefixed, isRangeEquivalentToPrefixgetDivisionCountgetByteCount, toHexString, toNormalizedStringgetBitCount, getBytes, getBytes, getCount, getUpperBytes, getUpperBytes, isFullRange, isMultiple, isZeroboolean contains(AddressSection other)
other - AddressSection getSection(int index)
AddressSegmentSeriesgetSection in interface AddressSegmentSeriesAddressSection getSection(int index, int endIndex)
AddressSegmentSeriesgetSection in interface AddressSegmentSeriesAddressSection getLower()
AddressComponentgetLower in interface AddressComponentgetLower in interface AddressSegmentSeriesAddressSection getUpper()
AddressComponentgetUpper in interface AddressComponentgetUpper in interface AddressSegmentSeriesAddressSection reverseSegments()
AddressSegmentSeriesreverseSegments in interface AddressSegmentSeriesAddressSection reverseBits(boolean perByte)
AddressSegmentSeriesreverseBits in interface AddressComponentreverseBits in interface AddressSegmentSeriesperByte - if true, only the bits in each byte are reversed, if false, then all bits in the component are reversedAddressSection reverseBytes()
AddressSegmentSeriesreverseBytes in interface AddressComponentreverseBytes in interface AddressSegmentSeriesAddressSection reverseBytesPerSegment()
AddressSegmentSeriesreverseBytesPerSegment in interface AddressSegmentSeriesAddressSection removePrefixLength()
AddressSegmentSeriesremovePrefixLength in interface AddressSegmentSeriesAddressSection adjustPrefixBySegment(boolean nextSegment)
AddressSegmentSeriesadjustPrefixBySegment in interface AddressSegmentSeriesAddressSection adjustPrefixLength(int adjustment)
AddressSegmentSeriesadjustPrefixLength in interface AddressSegmentSeriesAddressSection setPrefixLength(int prefixLength)
AddressSegmentSeriessetPrefixLength in interface AddressSegmentSeriesAddressSection applyPrefixLength(int networkPrefixLength)
AddressSegmentSeriesapplyPrefixLength in interface AddressSegmentSeriesjava.lang.Iterable<? extends AddressSection> getIterable()
AddressComponentAddressComponent.iterator() directly.getIterable in interface AddressComponentgetIterable in interface AddressSegmentSeriesjava.util.Iterator<? extends AddressSection> iterator()
AddressComponentAddressItem.isMultiple() to determine if this instance represents multiple.
This method iterates through the individual elements.iterator in interface AddressComponentiterator in interface AddressSegmentSeries