Skip to content

Commit

Permalink
Merge pull request #386 from katarinaking/826
Browse files Browse the repository at this point in the history
MNEMONIC-826: Annotated Iterator Interface
  • Loading branch information
katarinaking committed May 18, 2024
2 parents 87b87b5 + 44ea49b commit d3fec8e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
import java.io.Closeable;
import java.util.Iterator;

/**
* An iterator that is also a Closeable resource.
*
* @param <E> the type of elements returned by this iterator
*/
public interface CloseableIterator<E> extends Iterator<E>, Closeable {

// No additional methods needed, inherits from Iterator and Closeable
}

0 comments on commit d3fec8e

Please sign in to comment.