Interface Stack<Element>

All Known Implementing Classes:
EmptyStack, SingleStack, Topped

public interface Stack<Element>
An immutable stack. By design elements can only be retrieved from the top.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The top of a Stack.
  • Method Summary

    Modifier and Type
    Method
    Description
    top()
    Retrieves the top of this Stack.