|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.AbstractStack
it.unimi.dsi.fastutil.doubles.AbstractDoubleStack
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 | |
Object |
peek(int i)
Delegates to the corresponding type-specific method. |
double |
peekDouble(int i)
Delegates to the corresponding generic method. |
Object |
pop()
Delegates to the corresponding type-specific method. |
double |
popDouble()
Delegates to the corresponding generic method. |
void |
push(double k)
Delegates to the corresponding generic method. |
void |
push(Object o)
Delegates to the corresponding type-specific method. |
Object |
top()
Delegates to the corresponding type-specific method. |
double |
topDouble()
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(Object o)
push in interface Stacko - the object that will become the new top of the stack.public Object pop()
pop in interface Stackpublic Object top()
top in interface Stacktop in class AbstractStackpublic Object peek(int i)
peek in interface Stackpeek in class AbstractStackpublic void push(double k)
push in interface DoubleStackStack.push(Object)public double popDouble()
popDouble in interface DoubleStackStack.pop()public double topDouble()
topDouble in interface DoubleStackStack.top()public double peekDouble(int i)
peekDouble in interface DoubleStackStack.peek(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||