public abstract class AbstractDoubleStack extends AbstractStack<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 |
|---|---|
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.
|
public void push(Double o)
public Double pop()
public Double top()
public Double peek(int i)
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)