
com.googlecode.javaewah.CloneableIterator Maven / Gradle / Ivy
package com.googlecode.javaewah;
/**
* Like a standard Java iterator, except that you can clone it.
*
* @param the data type of the iterator
*/
public interface CloneableIterator extends Cloneable {
/**
* @return whether there is more
*/
public boolean hasNext();
/**
* @return the next element
*/
public E next();
/**
* @return a copy
* @throws CloneNotSupportedException this should never happen in practice
*/
public CloneableIterator clone() throws CloneNotSupportedException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy