Interface CloneableIterator<E>

  • Type Parameters:
    E - the data type of the iterator
    All Superinterfaces:
    java.lang.Cloneable

    public interface CloneableIterator<E>
    extends java.lang.Cloneable
    Like a standard Java iterator, except that you can clone it.
    • 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