ostore.util
Class FiniteStack

java.lang.Object
  |
  +--ostore.util.FiniteStack

public class FiniteStack
extends Object

A simple Stack of finite size.

Version:
$Id: FiniteStack.java,v 1.1 2002/05/13 22:24:16 hweather Exp $
Author:
Hakim Weatherspoon

Constructor Summary
FiniteStack(int size)
          Constructs a new Stack.
 
Method Summary
static void main(String[] argv)
           
 Object pop()
           
 boolean push(Object element)
           
 int size()
           
 String toString()
          Returns a human-readable representation of this CacheReserveState.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FiniteStack

public FiniteStack(int size)
Constructs a new Stack.

Method Detail

push

public boolean push(Object element)

pop

public Object pop()

size

public int size()

toString

public String toString()
Returns a human-readable representation of this CacheReserveState.

Overrides:
toString in class Object

main

public static void main(String[] argv)