T
- public interface StackKernel<T> extends Standard<Stack<T>>
Stack
kernel component containing method headers and contracts for
all methods that will directly interact with the label representations of all
Stack implementations. All sub-interface methods should use only these
methods to perform operations on the Stack
.Modifier and Type | Method and Description |
---|---|
T |
pop()
Removes the top of the stack and returns it.
|
void |
push(T entry)
Pushes
entry to the top of the stack. |
int |
size()
Reports the size of
this . |
clear, newInstance, transferFrom
void push(T entry)
entry
to the top of the stack.entry
- entry to be pushed to the top of the stack.T pop()
pop = [top of the stack] and #this =* this
int size()
this
.