Package algs13

Class StackWithNonStaticNode<T>

java.lang.Object
algs13.StackWithNonStaticNode<T>
All Implemented Interfaces:
Iterable<T>

public class StackWithNonStaticNode<T> extends Object implements Iterable<T>
The Stack class represents a last-in-first-out (LIFO) stack of generic items. It supports the usual push and pop operations, along with methods for peeking at the top item, testing if the stack is empty, and iterating through the items in LIFO order.

All stack operations except iteration are constant time.

For additional documentation, see Section 1.3 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.