public final class IteratorCounter extends Object
Constructor and Description |
---|
IteratorCounter(Iterator<?> iterator) |
Modifier and Type | Method and Description |
---|---|
long |
count()
Counts and returns the number of elements in an Iterator.
|
public IteratorCounter(Iterator<?> iterator)
Copyright © 2017. All rights reserved.