open-keychain/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/IteratorWithSize.java
Andrea Torlaschi db1e8b60ca ImportKeys: Extract interface and refactoring
ImportKeys: Extract interface and refactoring
2016-08-19 22:35:34 +02:00

18 lines
395 B
Java

package org.sufficientlysecure.keychain.util;
import java.util.Iterator;
/**
* An extended iterator interface, which knows the total number of its entries beforehand.
*/
public interface IteratorWithSize<E> extends Iterator<E> {
/**
* Returns the total number of entries in this iterator.
*
* @return the number of entries in this iterator.
*/
int getSize();
}