public interface DoubleStack extends Stack<java.lang.Double>
Stack that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
default java.lang.Double |
peek(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
double |
peekDouble(int index)
Provides the Selected Object from the stack.
|
default java.lang.Double |
pop()
Deprecated.
Please use the corresponding type-specific function instead.
|
double |
popDouble()
Removes the Object on top of the stack.
|
default void |
push(java.lang.Double e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
pushDouble(double e)
Inserts a given Object on top of the stack
|
default java.lang.Double |
top()
Deprecated.
Please use the corresponding type-specific function instead.
|
default double |
topDouble()
Provides the Object on top of the stack
|
void pushDouble(double e)
e - the Object to insertStack.push(Object)double popDouble()
java.lang.ArrayIndexOutOfBoundsException - if the stack is emptyStack.pop()default double topDouble()
java.lang.ArrayIndexOutOfBoundsException - if the stack is emptyStack.top()double peekDouble(int index)
index - of the element that should be providedjava.lang.ArrayIndexOutOfBoundsException - if the index is out of boundsStack.peek(int)@Deprecated default void push(java.lang.Double e)
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Double pop()
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Double top()
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Double peek(int index)
This default implementation delegates to the corresponding type-specific function.