|
GNU Trove | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TIntStack
A stack of int primitives.
Method Summary | |
---|---|
void |
clear()
Clears the stack. |
int |
getNoEntryValue()
Returns the value that is used to represent null. |
int |
peek()
Returns the value at the top of the stack. |
int |
pop()
Removes and returns the value at the top of the stack. |
void |
push(int val)
Pushes the value onto the top of the stack. |
int |
size()
Returns the current depth of the stack. |
int[] |
toArray()
Copies the contents of the stack into a native array. |
void |
toArray(int[] dest)
Copies a slice of the list into a native array. |
Method Detail |
---|
int getNoEntryValue()
void push(int val)
val
- an int
valueint pop()
int
valueint peek()
int
valueint size()
void clear()
int[] toArray()
int[]
valuevoid toArray(int[] dest)
dest
- the array to copy into.
|
GNU Trove | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |