|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.Vector
|
+--java.util.Stack
Implement a stack
| Field Summary |
| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
| Constructor Summary | |
Stack()
|
|
| Method Summary | |
boolean |
empty()
Test to see if this is empty |
Object |
peek()
Peek the object at the top of the stack |
Object |
pop()
Pop an object from the stack |
Object |
push(Object item)
Push an object on to the stack |
int |
search(Object o)
Search the stack for an object |
| Methods inherited from class java.util.Vector |
addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Stack()
| Method Detail |
public Object push(Object item)
item - The item to push
public Object pop()
public Object peek()
public boolean empty()
public int search(Object o)
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||