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