|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.util.LongVector
net.rim.device.api.util.LongStack
public class LongStack
Last-in-first-out (LIFO) stack of long values.
| Field Summary |
|---|
| Fields inherited from class net.rim.device.api.util.LongVector |
|---|
capacityIncrement, elementCount, elementData |
| Constructor Summary | ||
|---|---|---|
LongStack()
Creates an empty stack. |
||
LongStack(int initialCapacityInt)
Allows the creation of the stack with a different initial capacity. |
||
| Method Summary | ||
|---|---|---|
long |
peek()
Retrieves the long at the top of this stack without removing it. |
|
long |
pop()
Retrieves the long at the top of the stack and removes it. |
|
long |
push(long valueLong)
Pushes a long onto the top of this stack. |
|
int |
search(int valueLong)
Returns the 1-based position where a long is on this stack. |
|
| Methods inherited from class net.rim.device.api.util.LongVector |
|---|
addElement, addElements, capacity, contains, copyInto, elementAt, ensureCapacity, firstElement, getArray, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toArray, trimToSize |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongStack()
public LongStack(int initialCapacityInt)
initialCapacityInt - Initial capacity to use.| Method Detail |
|---|
public long push(long valueLong)
valueLong - Value to push.
public long pop()
public long peek()
public int search(int valueLong)
valueLong - Value to search for.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal