public interface CharStack extends Stack<Character>
Stack; provides some additional methods that use
polymorphism to avoid (un)boxing.| Modifier and Type | Method and Description |
|---|---|
Character |
peek(int i)
Deprecated.
Please use the corresponding type-specific method instead.
|
char |
peekChar(int i)
Peeks at an element on the stack (optional operation).
|
Character |
pop()
Deprecated.
Please use the corresponding type-specific method instead.
|
char |
popChar()
Pushes the given object on the stack.
|
void |
push(char k)
Pushes the given object on the stack.
|
void |
push(Character o)
Deprecated.
Please use the corresponding type-specific method instead.
|
Character |
top()
Deprecated.
Please use the corresponding type-specific method instead.
|
char |
topChar()
Peeks at the top of the stack (optional operation).
|
void push(char k)
Stack.push(Object)char popChar()
Stack.pop()char topChar()
Stack.top()char peekChar(int i)
Stack.peek(int)@Deprecated void push(Character o)
@Deprecated Character pop()
@Deprecated Character top()
@Deprecated Character peek(int i)