|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.AbstractStack<Double>
it.unimi.dsi.fastutil.doubles.AbstractDoubleStack
public abstract class 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).
Constructor Summary | |
---|---|
protected |
AbstractDoubleStack()
|
Method Summary | |
---|---|
Double |
peek(int i)
Delegates to the corresponding type-specific method. |
double |
peekDouble(int i)
Delegates to the corresponding generic method. |
Double |
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(Double o)
Delegates to the corresponding type-specific method. |
Double |
top()
Delegates to the corresponding type-specific method. |
double |
topDouble()
Delegates to the corresponding generic method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.Stack |
---|
isEmpty |
Constructor Detail |
---|
protected AbstractDoubleStack()
Method Detail |
---|
public void push(Double o)
push
in interface Stack<Double>
o
- the object that will become the new top of the stack.public Double pop()
pop
in interface Stack<Double>
public Double top()
top
in interface Stack<Double>
top
in class AbstractStack<Double>
public Double peek(int i)
peek
in interface Stack<Double>
peek
in class AbstractStack<Double>
i
-th element on the stack; 0 represents the top.public void push(double k)
push
in interface DoubleStack
Stack.push(Object)
public double popDouble()
popDouble
in interface DoubleStack
Stack.pop()
public double topDouble()
topDouble
in interface DoubleStack
Stack.top()
public double peekDouble(int i)
peekDouble
in interface DoubleStack
Stack.peek(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |