org.wings.util
Class FastStack

java.lang.Object
  extended by org.wings.util.FastStack

public final class FastStack
extends Object

Non synchronized, fast stack. This stack never shrinks its internal data structure.

Author:
Henner Zeller

Constructor Summary
FastStack(int initialElements)
           
 
Method Summary
 void clear()
          clear the stack.
 boolean isEmpty()
           
 Object peek()
           
 void pop()
          pop element from stack.
 void push(Object o)
          push object to Stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastStack

public FastStack(int initialElements)
Method Detail

clear

public void clear()
clear the stack.


isEmpty

public boolean isEmpty()

push

public void push(Object o)
push object to Stack.


peek

public Object peek()

pop

public void pop()
pop element from stack. Does not return the actual element. If you need this, call peek().



wingS Swings ;-)