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