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 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)