|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A generic interface for stacked collections. This interface prescribes
methods that let you access objects in a collection based on some rule
of order.
Last modified $Date: 1999/11/06 19:50:56 $
Method Summary | |
boolean |
isEmpty()
|
java.lang.Object |
peek()
Provides a look at the next object on the stack without removing it. |
java.lang.Object |
pop()
Removes the next object on the stack and returns it. |
java.lang.Object |
push(java.lang.Object ob)
Places an object on the stack. |
int |
search(java.lang.Object ob)
Provides the location of the specified object on the stack. |
int |
size()
|
Method Detail |
public boolean isEmpty()
public java.lang.Object peek()
public java.lang.Object pop()
public java.lang.Object push(java.lang.Object ob)
ob
- the object to be placed on the stackpublic int search(java.lang.Object ob)
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |