biz.onixs.fix.fast.util
Class FixedStack<E>

java.lang.Object
  extended by biz.onixs.fix.fast.util.FixedStack<E>
All Implemented Interfaces:
Stack<E>

public class FixedStack<E>
extends Object
implements Stack<E>


Constructor Summary
FixedStack(int capacity)
           
 
Method Summary
 boolean isEmpty()
           
 boolean isFull()
           
 E peek()
           
 E pop()
           
 void push(E item)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FixedStack

public FixedStack(int capacity)
Method Detail

push

public void push(E item)
Specified by:
push in interface Stack<E>

pop

public E pop()
Specified by:
pop in interface Stack<E>

peek

public E peek()
Specified by:
peek in interface Stack<E>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Stack<E>

isFull

public boolean isFull()
Specified by:
isFull in interface Stack<E>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.