public abstract class AbstractDoubleStack extends AbstractStack<java.lang.Double> implements DoubleStack
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 |
|---|---|
java.lang.Double |
peek(int i)
Delegates to the corresponding type-specific method.
|
double |
peekDouble(int i)
Delegates to the corresponding generic method.
|
java.lang.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(java.lang.Double o)
Delegates to the corresponding type-specific method.
|
java.lang.Double |
top()
Delegates to the corresponding type-specific method.
|
double |
topDouble()
Delegates to the corresponding generic method.
|
public void push(java.lang.Double o)
public java.lang.Double pop()
public java.lang.Double top()
top in interface Stack<java.lang.Double>top in class AbstractStack<java.lang.Double>public java.lang.Double peek(int i)
peek in interface Stack<java.lang.Double>peek in class AbstractStack<java.lang.Double>i - an index from the stop of the stack (0 represents the top).i-th element on the stack.public 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)