Package org.apache.calcite.util
Class Stacks
java.lang.Object
org.apache.calcite.util.Stacks
Deprecated.
Utilities to make vanilla lists look like stacks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
Deprecated.Returns then
th most recently added element in the stack.static <T> T
Deprecated.Returns the most recently added element in the stack.static <T> T
Deprecated.Removes an element from the stack and returns it.static <T> void
Deprecated.Removes an element from the stack.static <T> void
Deprecated.Adds an element to the stack.
-
Method Details
-
peek
Deprecated.Returns the most recently added element in the stack. Throws if the stack is empty. -
peek
Deprecated.Returns then
th most recently added element in the stack. Throws if the stack is empty. -
push
Deprecated.Adds an element to the stack. -
pop
Deprecated.Removes an element from the stack. Asserts of the element is not the one last added; throws if the stack is empty. -
pop
Deprecated.Removes an element from the stack and returns it.Throws if the stack is empty.
-