Skip to content

Commit

Permalink
MNEMONIC-819: Streamlined Iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
katarinaking committed Mar 10, 2024
1 parent 81e0477 commit 6426227
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,20 @@

import java.util.Iterator;

/**
* Represents an input session that provides a way to iterate over elements of type V.
*
* @param <V> the type of elements in the input session
*/
public interface InputSession<V> extends Iterable<V> {

Iterator<V> iterator();
/**
* Returns an iterator over the elements in this input session.
*
* @return an iterator
*/
@Override
Iterator<V> iterator();

}

0 comments on commit 6426227

Please sign in to comment.