//---------------------------------------------------------------------------- // BoundedStackInterface.java by Dale/Joyce/Weems Chapter 3 // // Interface for a class that implements a stack of with a bound // on the size of the stack. A stack is a last-in, first-out structure. // ajg version: format //---------------------------------------------------------------------------- package ch03.stacks; public interface BoundedStackInterface extends StackInterface { // Throws StackOverflowException if this stack is full, // otherwise places element at the top of this stack. void push(T element) throws StackOverflowException; boolean isFull(); }