info.informatica.util
Class FixedStack

java.lang.Object
  extended by info.informatica.util.FixedStack

public class FixedStack
extends Object

Fixed-size LIFO Stack implementation

Version:
1.00, noviembre 1999
Author:
amengual at informatica dot info

Constructor Summary
FixedStack(int maxsize)
           
 
Method Summary
 Object elementAt(int i)
           
 boolean empty()
           
 Object peek()
           
 Object pop()
           
 Object push(Object item)
           
 int search(Object o)
           
 Object[] toArray()
           
 Object[] toArray(Object[] artype)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedStack

public FixedStack(int maxsize)
Method Detail

push

public Object push(Object item)

peek

public Object peek()
            throws EmptyStackException
Throws:
EmptyStackException

pop

public Object pop()
           throws EmptyStackException
Throws:
EmptyStackException

search

public int search(Object o)

empty

public boolean empty()

elementAt

public Object elementAt(int i)

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] artype)