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 . |
FiniteStack
public FiniteStack(int size)
- Constructs a new
Stack
.
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)