public interface IntStack extends Stack<Integer>
Stack; provides some additional methods that use
polymorphism to avoid (un)boxing.| Modifier and Type | Method and Description |
|---|---|
Integer |
peek(int i)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
peekInt(int i)
Peeks at an element on the stack (optional operation).
|
Integer |
pop()
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
popInt()
Pushes the given object on the stack.
|
void |
push(int k)
Pushes the given object on the stack.
|
void |
push(Integer o)
Deprecated.
Please use the corresponding type-specific method instead.
|
Integer |
top()
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
topInt()
Peeks at the top of the stack (optional operation).
|
void push(int k)
Stack.push(Object)int popInt()
Stack.pop()int topInt()
Stack.top()int peekInt(int i)
Stack.peek(int)@Deprecated void push(Integer o)
@Deprecated Integer pop()
@Deprecated Integer top()
@Deprecated Integer peek(int i)