|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.AbstractStack<Character>
it.unimi.dsi.fastutil.chars.AbstractCharStack
public abstract class AbstractCharStack
An abstract class providing basic methods for implementing a type-specific stack interface.
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).
| Method Summary | |
|---|---|
Character |
peek(int i)
Delegates to the corresponding type-specific method. |
char |
peekChar(int i)
Delegates to the corresponding generic method. |
Character |
pop()
Delegates to the corresponding type-specific method. |
char |
popChar()
Delegates to the corresponding generic method. |
void |
push(char k)
Delegates to the corresponding generic method. |
void |
push(Character o)
Delegates to the corresponding type-specific method. |
Character |
top()
Delegates to the corresponding type-specific method. |
char |
topChar()
Delegates to the corresponding generic method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
|---|
isEmpty |
| Method Detail |
|---|
public void push(Character o)
push in interface Stack<Character>o - the object that will become the new top of the stack.public Character pop()
pop in interface Stack<Character>public Character top()
top in interface Stack<Character>top in class AbstractStack<Character>public Character peek(int i)
peek in interface Stack<Character>peek in class AbstractStack<Character>i-th element on the stack; 0 represents the top.public void push(char k)
push in interface CharStackStack.push(Object)public char popChar()
popChar in interface CharStackStack.pop()public char topChar()
topChar in interface CharStackStack.top()public char peekChar(int i)
peekChar in interface CharStackStack.peek(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||