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