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