Skip to content

Commit

Permalink
MNEMONIC-826: Annotated Iterator Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
katarinaking committed May 18, 2024
1 parent 4a91cb1 commit 44ea49b
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 44ea49b

Please sign in to comment.