public interface AddressComponentRange extends AddressItem, AddressItemRange
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<? extends AddressComponent> |
getIterable()
Useful for using an instance in a "for-each loop".
|
AddressComponent |
getLower()
If this instance represents multiple address items, returns the one with the lowest numeric value.
|
AddressComponent |
getUpper()
If this instance represents multiple address items, returns the one with the highest numeric value.
|
java.util.Iterator<? extends AddressComponent> |
iterator()
Iterates through the individual address components.
|
AddressComponentRangeSpliterator<? extends AddressComponentRange,? extends AddressComponent> |
spliterator()
Partitions and traverses through the individual address components.
|
java.util.stream.Stream<? extends AddressComponent> |
stream()
Returns a sequential stream of the individual address components.
|
static <T extends AddressComponent> |
stream(java.util.function.Function<T,java.util.stream.Stream<? extends T>> addrStreamFunc,
java.util.Collection<? extends T> components)
Given a list of components, and a lambda that returns a stream for that component type,
returns a sequential combined stream produced by applying that lambda to all the components.
|
static <T extends AddressComponent> |
stream(java.util.function.Function<T,java.util.stream.Stream<? extends T>> addrStreamFunc,
T... components)
Given a list of components, and a lambda that returns a stream for that component type,
returns a combined stream produced by applying that lambda to all the components.
|
compareTo, containsPrefixBlock, containsSinglePrefixBlock, getBitCount, getByteCount, getBytes, getBytes, getBytes, getCount, getMinPrefixLengthForBlock, getPrefixCount, getPrefixLengthForSingleBlock, getUpperBytes, getUpperBytes, getUpperBytes, getUpperValue, getValue, includesMax, includesZero, isFullRange, isMax, isMultiple, isZero, testRange, testRangeAddressComponent getLower()
AddressComponent getUpper()
java.lang.Iterable<? extends AddressComponent> getIterable()
iterator() directly.java.util.Iterator<? extends AddressComponent> iterator()
Call AddressItem.isMultiple() to determine if this instance represents multiple, or AddressItem.getCount() for the count.
AddressComponentRangeSpliterator<? extends AddressComponentRange,? extends AddressComponent> spliterator()
java.util.stream.Stream<? extends AddressComponent> stream()
BaseStream.parallel() on the returned stream.@SafeVarargs static <T extends AddressComponent> java.util.stream.Stream<T> stream(java.util.function.Function<T,java.util.stream.Stream<? extends T>> addrStreamFunc, T... components)
addrStreamFunc - components - static <T extends AddressComponent> java.util.stream.Stream<T> stream(java.util.function.Function<T,java.util.stream.Stream<? extends T>> addrStreamFunc, java.util.Collection<? extends T> components)
BaseStream.parallel() on the returned stream.addrStreamFunc - components -