public abstract class AbstractCharStack extends AbstractStack<Character> implements CharStack
To create a type-specific stack, you need both object methods and primitive-type methods. However, if you inherit from this class you need just one (anyone).
| 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).
|
public void push(char k)
This implementation delegates to the corresponding generic method.
push in interface CharStackStack.push(Object)public char popChar()
This implementation delegates to the corresponding generic method.
popChar in interface CharStackStack.pop()public char topChar()
This implementation delegates to the corresponding generic method.
topChar in interface CharStackStack.top()public char peekChar(int i)
This implementation delegates to the corresponding generic method.
peekChar in interface CharStackStack.peek(int)@Deprecated public void push(Character o)
This implementation delegates to the corresponding type-specific method.
@Deprecated public Character pop()
This implementation delegates to the corresponding type-specific method.
@Deprecated public Character top()
This implementation delegates to the corresponding type-specific method.
@Deprecated public Character peek(int i)
This implementation just throws an UnsupportedOperationException.
This implementation delegates to the corresponding type-specific method.