| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.opengve.tools.dataStructures.Stack<E>
public class Stack<E>
This class implement the concept of stack.
| Constructor Summary | |
|---|---|
| Stack()Constructor. | |
| Method Summary | |
|---|---|
|  void | clear()Removes all the element of this stack. | 
|  E | get()Return the first element of this stack and remove it. | 
|  boolean | isEmpty()Tell if the stack is empty. | 
|  E | look()Return the first element of this stack. | 
|  void | put(E o)Add an element to this stack. | 
|  int | size()Give the size of this stack. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Stack()
| Method Detail | 
|---|
public E get()
get in interface Accumulator<E>java.util.NoSuchElementException - If the stack is empty.public E look()
look in interface Accumulator<E>java.util.NoSuchElementException - If the stack is empty.public void put(E o)
put in interface Accumulator<E>o - The object to add to the top of the stack.public boolean isEmpty()
isEmpty in interface Accumulator<E>true if the stack is empty and
         false otherwise.public int size()
size in interface Accumulator<E>public void clear()
clear in interface Accumulator<E>| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||