public interface LongStack extends Stack<java.lang.Long>
Stack that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
default java.lang.Long |
peek(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
long |
peekLong(int index)
Provides the Selected Object from the stack.
|
default java.lang.Long |
pop()
Deprecated.
Please use the corresponding type-specific function instead.
|
long |
popLong()
Removes the Object on top of the stack.
|
default void |
push(java.lang.Long e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
pushLong(long e)
Inserts a given Object on top of the stack
|
default java.lang.Long |
top()
Deprecated.
Please use the corresponding type-specific function instead.
|
default long |
topLong()
Provides the Object on top of the stack
|
void pushLong(long e)
e - the Object to insertStack.push(Object)long popLong()
java.lang.ArrayIndexOutOfBoundsException - if the stack is emptyStack.pop()default long topLong()
java.lang.ArrayIndexOutOfBoundsException - if the stack is emptyStack.top()long peekLong(int index)
index - of the element that should be providedjava.lang.ArrayIndexOutOfBoundsException - if the index is out of boundsStack.peek(int)@Deprecated default void push(java.lang.Long e)
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Long pop()
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Long top()
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Long peek(int index)
This default implementation delegates to the corresponding type-specific function.