|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.util.IntVector
net.rim.device.api.util.IntStack
public class IntStack
Last-in-first-out (LIFO) stack of integer values.
Field Summary |
---|
Fields inherited from class net.rim.device.api.util.IntVector |
---|
capacityIncrement, elementCount, elementData |
Constructor Summary | ||
---|---|---|
IntStack()
Creates an empty stack. |
||
IntStack(int initialCapacityInt)
Allows the creation of the stack with a different initial capacity. |
Method Summary | ||
---|---|---|
int |
peek()
Retrieves the int at the top of this stack without removing it. |
|
int |
pop()
Retrieves the int at the top of the stack and removes it. |
|
int |
push(int valueInt)
Pushes an int onto the top of this stack. |
|
int |
search(int valueInt)
Returns the 1-based position where an object is on this stack. |
Methods inherited from class net.rim.device.api.util.IntVector |
---|
addElement, 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 IntStack()
public IntStack(int initialCapacityInt)
initialCapacityInt
- Initial capacity to use.Method Detail |
---|
public int push(int valueInt)
valueInt
- Value to push.
public int pop()
public int peek()
public int search(int valueInt)
valueInt
- 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