gnu.jel
Class IntegerStack

java.lang.Object
  |
  +--gnu.jel.IntegerStack

class IntegerStack
extends java.lang.Object

Specialized stack which works with integers.


Constructor Summary
IntegerStack()
           
IntegerStack(int initCapacity)
           
 
Method Summary
 IntegerStack copy()
           
 int peek()
           
 int pop()
           
 void push(int what)
           
 int size()
           
static void swap(IntegerStack one, int oneLim, IntegerStack other, int otherLim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerStack

public IntegerStack(int initCapacity)

IntegerStack

public IntegerStack()
Method Detail

copy

public IntegerStack copy()

push

public final void push(int what)

peek

public final int peek()

pop

public final int pop()

size

public final int size()

swap

public static void swap(IntegerStack one,
                        int oneLim,
                        IntegerStack other,
                        int otherLim)