com.googlecode.javaewah
Interface CloneableIterator<E>

Type Parameters:
E - the data type of the iterator
All Superinterfaces:
Cloneable

public interface CloneableIterator<E>
extends Cloneable

Like a standard Java iterator, except that you can clone it.


Method Summary
 CloneableIterator<E> clone()
           
 boolean hasNext()
           
 E next()
           
 

Method Detail

hasNext

boolean hasNext()
Returns:
whether there is more

next

E next()
Returns:
the next element

clone

CloneableIterator<E> clone()
                           throws CloneNotSupportedException
Returns:
a copy
Throws:
CloneNotSupportedException - this should never happen in practice


Copyright © 2014. All Rights Reserved.