Package com.googlecode.javaewah
Interface CloneableIterator<E>
- Type Parameters:
E
- the data type of the iterator
- All Superinterfaces:
Cloneable
Like a standard Java iterator, except that you can clone it.
-
Method Summary
-
Method Details
-
hasNext
boolean hasNext()- Returns:
- whether there is more
-
next
E next()- Returns:
- the next element
-
clone
- Returns:
- a copy
- Throws:
CloneNotSupportedException
- this should never happen in practice
-