Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gjt.sp.util
Class IntegerArray  view IntegerArray download IntegerArray.java

java.lang.Object
  extended byorg.gjt.sp.util.IntegerArray

public class IntegerArray
extends java.lang.Object

A simple collection that stores integers and grows automatically.


Field Summary
private  int[] array
           
private  int len
           
 
Constructor Summary
IntegerArray()
           
IntegerArray(int initialSize)
           
 
Method Summary
 void add(int num)
           
 void clear()
           
 int get(int index)
           
 int[] getArray()
           
 int getSize()
           
 void setSize(int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

private int[] array

len

private int len
Constructor Detail

IntegerArray

public IntegerArray()

IntegerArray

public IntegerArray(int initialSize)
Method Detail

add

public void add(int num)

get

public final int get(int index)

getSize

public final int getSize()

setSize

public final void setSize(int len)

clear

public final void clear()

getArray

public int[] getArray()