This repository has been archived on 2021-06-15. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
CS2-projects/IteratorExample1/src/Position.java
2021-03-26 22:39:35 -05:00

15 lines
382 B
Java

/**
* Data Structures & Algorithms 6th Edition
* Goodrick, Tamassia, Goldwasser
* Code Fragement 7.7
*/
public interface Position<E> {
/**
* Returns the element stored at this position.
*
* @return the stored element
* @thorws IllegalStateExceptoin if position no longer valid
*/
E getElement( ) throws IllegalStateException;
}