Interface Stack.StackTop<Element>

Enclosing interface:
Stack<Element>

public static interface Stack.StackTop<Element>
The top of a Stack.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the underlying Stack.
    Returns the topmost stack element.
  • Method Details

    • element

      Element element()
      Returns the topmost stack element.
    • bottom

      Stack<Element> bottom()
      Returns the underlying Stack.