mako5.util
Interface Stack<T>

All Known Implementing Classes:
ArrayStack

public interface Stack<T>

A stack interface.

Version:
29-Jun 2006
Author:
Paul Jarrett

Method Summary
 boolean isEmpty()
          Returns true if this stack is empty.
 T pop()
          Pops an element from this stack.
 void push(T rVal_)
          Pushes an element into the stack.
 int size()
          Returns the current number of elements in this stack.
 

Method Detail

push

void push(T rVal_)
Pushes an element into the stack.

Parameters:
rVal_ - the element to add into the stack
Since:
14-Mar 2006, 24-Mar 2006 (1.00)

pop

T pop()
Pops an element from this stack.

Returns:
the popped element from this stack
Since:
14-Mar 2006, 24-Mar 2006 (1.00)

isEmpty

boolean isEmpty()
Returns true if this stack is empty.

Returns:
true if this stack is empty.
Since:
14-Mar 2006, 24-Mar 2006 (1.00)

size

int size()
Returns the current number of elements in this stack.

Returns:
the number of elements in the stack.
Since:
14-Mar 2006