Stack<java.lang.Long>AbstractLongBigList, AbstractLongBigList.LongSubList, AbstractLongList, AbstractLongList.LongSubList, AbstractLongStack, LongArrayList, LongBigArrayBigList, LongBigLists.ListBigList, LongBigLists.Singleton, LongLists.Singletonpublic interface LongStack extends Stack<java.lang.Long>
Stack; provides some additional methods that use
polymorphism to avoid (un)boxing.| Modifier and Type | Method | Description |
|---|---|---|
default java.lang.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).
|
default java.lang.Long |
pop() |
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
popLong() |
Pops the top off the stack.
|
void |
push(long k) |
Pushes the given object on the stack.
|
default void |
push(java.lang.Long o) |
Deprecated.
Please use the corresponding type-specific method instead.
|
default java.lang.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)
k - the object to push on the stack.Stack.push(Object)long popLong()
Stack.pop()long topLong()
Stack.top()long peekLong(int i)
i - an index from the stop of the stack (0 represents the top).i-th element on the stack.Stack.peek(int)@Deprecated default void push(java.lang.Long o)
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Long pop()
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Long top()
This default implementation returns peek(0).
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Long peek(int i)
This default implementation just throws an UnsupportedOperationException.
This default implementation delegates to the corresponding type-specific method.