org.openorb.util
Class CurrentStack
java.lang.Object
|
+--org.openorb.util.CurrentStack
- public class CurrentStack
- extends Object
Implementation for current objects. Each push call should allways
have a corresponding pop.
- Version:
- $Revision: 1.2 $ $Date: 2004/02/10 21:28:45 $
- Author:
- Chris Wood
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentStack
public CurrentStack()
peek
public Object peek()
- Get current data.
- Returns:
- The object on the top of the current stack.
push
public void push(Object obj)
- Setup current data. Every push call should have a corresponding
pop call.
- Parameters:
obj - object to put on the current stack.
pop
public Object pop()
- Remove data from current. Associated with a push call.
- Returns:
- The old current object.
set
public Object set(Object obj)
- Replace current data.
- Parameters:
obj - object to replace the current object.- Returns:
- The old current object.