- java.lang.Object
-
- com.ibm.j9ddr.corereaders.tdump.zebedee.util.IntegerStack
-
public final class IntegerStack extends Object
This class implements a simple stack of integers.
-
-
Constructor Summary
Constructors Constructor Description IntegerStack(int size)
Create a new stack with the given size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
depth()
Return the depth of the stack.int
peek()
Return the integer at the top of the stack without popping it.int
pop()
Pop an integer off the stack.void
push(int n)
Push an integer on the stack.
-