public interface ShortStack extends Stack<java.lang.Short>
Stack that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
default java.lang.Short |
peek(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
short |
peekShort(int index)
Provides the Selected Object from the stack.
|
default java.lang.Short |
pop()
Deprecated.
Please use the corresponding type-specific function instead.
|
short |
popShort()
Removes the Object on top of the stack.
|
default void |
push(java.lang.Short e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
pushShort(short e)
Inserts a given Object on top of the stack
|
default java.lang.Short |
top()
Deprecated.
Please use the corresponding type-specific function instead.
|
default short |
topShort()
Provides the Object on top of the stack
|
void pushShort(short e)
e - the Object to insertStack.push(Object)short popShort()
java.lang.ArrayIndexOutOfBoundsException - if the stack is emptyStack.pop()default short topShort()
java.lang.ArrayIndexOutOfBoundsException - if the stack is emptyStack.top()short peekShort(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.Short e)
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Short pop()
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Short top()
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Short peek(int index)
This default implementation delegates to the corresponding type-specific function.