gnu.trove.stack
public interface TDoubleStack
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the stack.
|
double |
getNoEntryValue()
Returns the value that is used to represent null.
|
double |
peek()
Returns the value at the top of the stack.
|
double |
pop()
Removes and returns the value at the top of the stack.
|
void |
push(double val)
Pushes the value onto the top of the stack.
|
int |
size()
Returns the current depth of the stack.
|
double[] |
toArray()
Copies the contents of the stack into a native array.
|
void |
toArray(double[] dest)
Copies a slice of the list into a native array.
|
double getNoEntryValue()
void push(double val)
val
- an double
valuedouble pop()
double
valuedouble peek()
double
valueint size()
void clear()
double[] toArray()
double[]
valuevoid toArray(double[] dest)
dest
- the array to copy into.