| java.util.Vector org.apache.lenya.util.Stack
Stack | public class Stack extends Vector (Code) | | A helper class to implement a stack. Unlike java.util.Stack, this stack
discards old elements once maxsize is reached.
See Also: java.util.Stack |
Constructor Summary | |
public | Stack(int _maxsize) Creates a new Stack object. |
Stack | public Stack(int _maxsize)(Code) | | Creates a new Stack object.
Parameters: _maxsize - The maximum size of the stack |
push | public void push(Object object)(Code) | | Push an object on the stack
Parameters: object - The object |
|
|