db1e8b60ca
ImportKeys: Extract interface and refactoring
18 lines
395 B
Java
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();
|
|
|
|
}
|