Stack<java.lang.Double>AbstractDoubleBigList, AbstractDoubleBigList.DoubleSubList, AbstractDoubleList, AbstractDoubleList.DoubleSubList, AbstractDoubleStack, DoubleArrayList, DoubleBigArrayBigList, DoubleBigLists.ListBigList, DoubleBigLists.Singleton, DoubleLists.Singletonpublic interface DoubleStack extends Stack<java.lang.Double>
Stack; provides some additional methods that use
polymorphism to avoid (un)boxing.| Modifier and Type | Method | Description |
|---|---|---|
default java.lang.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).
|
default java.lang.Double |
pop() |
Deprecated.
Please use the corresponding type-specific method instead.
|
double |
popDouble() |
Pops the top off the stack.
|
void |
push(double k) |
Pushes the given object on the stack.
|
default void |
push(java.lang.Double o) |
Deprecated.
Please use the corresponding type-specific method instead.
|
default java.lang.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)
k - the object to push on the stack.Stack.push(Object)double popDouble()
Stack.pop()double topDouble()
Stack.top()double peekDouble(int i)
i - an index from the stop of the stack (0 represents the top).i-th element on the stack.Stack.peek(int)@Deprecated default void push(java.lang.Double o)
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Double pop()
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Double top()
This default implementation returns peek(0).
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Double peek(int i)
This default implementation just throws an UnsupportedOperationException.
This default implementation delegates to the corresponding type-specific method.