Package com.googlecode.javaewah
Interface CloneableIterator<E>
-
- Type Parameters:
E- the data type of the iterator
- All Superinterfaces:
java.lang.Cloneable
- All Known Implementing Classes:
AndIt,BufferedAndIterator,BufferedORIterator,BufferedXORIterator,ORIt,XORIt
public interface CloneableIterator<E> extends java.lang.CloneableLike a standard Java iterator, except that you can clone it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloneableIterator<E>clone()booleanhasNext()Enext()
-
-
-
Method Detail
-
hasNext
boolean hasNext()
- Returns:
- whether there is more
-
next
E next()
- Returns:
- the next element
-
clone
CloneableIterator<E> clone() throws java.lang.CloneNotSupportedException
- Returns:
- a copy
- Throws:
java.lang.CloneNotSupportedException- this should never happen in practice
-
-