public abstract class AbstractIPv6Range extends AbstractIPRange<IPv6Address> implements IPv6Range
IPRange
interface for IPv6 addresses.Constructor and Description |
---|
AbstractIPv6Range() |
Modifier and Type | Method and Description |
---|---|
int |
size()
Returns the number of IP addresses in this IP range.
|
Spliterator<IPv6Address> |
spliterator() |
equals, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
add, addAll, clear, contains, contains, containsAll, equals, forEach, from, hashCode, isEmpty, iterator, remove, removeAll, removeIf, retainAll, to, toArray, toArray
parallelStream, stream
public int size()
This implementation computes the size from IPRange.from()
and IPRange.to()
, caching its value for performance.
size
in interface IPRange<IPv6Address>
size
in interface Collection<IPv6Address>
public Spliterator<IPv6Address> spliterator()
This implementation returns an IPv6RangeSpliterator
for this range.
spliterator
in interface Iterable<IPv6Address>
spliterator
in interface Collection<IPv6Address>
Copyright © 2019–2023. All rights reserved.