com.fdsapi
Class FDSStack

java.lang.Object
  |
  +--com.fdsapi.FDSStack

public class FDSStack
extends java.lang.Object

Implimentation of a stack. *

View Code


Constructor Summary
FDSStack()
          Creates a new instance of FDSStack
 
Method Summary
 java.lang.Object getCurrent()
          get the current top item on the stack, but don't pop.
 boolean isEmpty()
          Returns true if the stack is empty, false otherwise
 java.lang.Object pop()
          pop from the stack
 void push(java.lang.Object item)
          Push to the stack
 void reset()
          Wipe out anything on the stack i.e.
 int size()
          Return how many items are on the stack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FDSStack

public FDSStack()
Creates a new instance of FDSStack

Method Detail

push

public void push(java.lang.Object item)
Push to the stack


pop

public java.lang.Object pop()
pop from the stack


getCurrent

public java.lang.Object getCurrent()
get the current top item on the stack, but don't pop.


reset

public void reset()
Wipe out anything on the stack i.e. make the stack empty


size

public int size()
Return how many items are on the stack


isEmpty

public boolean isEmpty()
Returns true if the stack is empty, false otherwise