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