dnet45/dnet-hadoop/dhp-common/src/main/java/eu/dnetlib/dhp/common/java/io/CountingIterator.java @ 51263
1 |
package eu.dnetlib.dhp.common.java.io; |
---|---|
2 |
|
3 |
import java.util.Iterator; |
4 |
|
5 |
/**
|
6 |
* Counting iterator providing total number of results.
|
7 |
* @author mhorst
|
8 |
*
|
9 |
* @param <E>
|
10 |
*/
|
11 |
public interface CountingIterator<E> extends Iterator<E> { |
12 |
|
13 |
/**
|
14 |
* Provides total number of results to be iterating on.
|
15 |
* @return total number of results to be iterating on
|
16 |
*/
|
17 |
int getCount(); |
18 |
|
19 |
}
|