org.webmacro.util
Class IntStack

java.lang.Object
  extended byorg.webmacro.util.IntStack

public final class IntStack
extends java.lang.Object

This is a simple unsynchronized stack for the primitive type int


Constructor Summary
IntStack()
           
 
Method Summary
 void clear()
           
 void ensureCapacity(int numElems)
           
 boolean isEmpty()
           
 int pop()
           
 void push(int i)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntStack

public IntStack()
Method Detail

push

public void push(int i)

pop

public int pop()
        throws java.util.NoSuchElementException
Throws:
java.util.NoSuchElementException

size

public int size()

isEmpty

public boolean isEmpty()

clear

public void clear()

ensureCapacity

public void ensureCapacity(int numElems)