inital commit
This commit is contained in:
commit
d1948b0e58
67 changed files with 5280 additions and 0 deletions
15
IteratorExample1/src/Position.java
Normal file
15
IteratorExample1/src/Position.java
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
/**
|
||||
* 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;
|
||||
}
|
Reference in a new issue