Package com.zybooks.dsaj.util
Interface Position<E>
- Type Parameters:
E
- the element type stored at a position
- All Known Implementing Classes:
LinkedBinaryTree.Node
,TreeMap.BalanceableBinaryTree.BSTNode
public interface Position<E>
An interface for a position which is an abstraction for the
location at which a single element is stored in a positional
container.
-
Method Summary
-
Method Details
-
getElement
Returns the element stored at this position.- Returns:
- the stored element
- Throws:
IllegalStateException
- if position no longer valid
-