public interface DoubleStack extends Stack<Double>
Stack; provides some additional methods that use
polymorphism to avoid (un)boxing.| Modifier and Type | Method and Description |
|---|---|
Double |
peek(int i)
Deprecated.
Please use the corresponding type-specific method instead.
|
double |
peekDouble(int i)
Peeks at an element on the stack (optional operation).
|
Double |
pop()
Deprecated.
Please use the corresponding type-specific method instead.
|
double |
popDouble()
Pushes the given object on the stack.
|
void |
push(double k)
Pushes the given object on the stack.
|
void |
push(Double o)
Deprecated.
Please use the corresponding type-specific method instead.
|
Double |
top()
Deprecated.
Please use the corresponding type-specific method instead.
|
double |
topDouble()
Peeks at the top of the stack (optional operation).
|
void push(double k)
Stack.push(Object)double popDouble()
Stack.pop()double topDouble()
Stack.top()double peekDouble(int i)
Stack.peek(int)@Deprecated void push(Double o)
@Deprecated Double pop()
@Deprecated Double top()
@Deprecated Double peek(int i)