com.ibm.wala.util.intset
Class SimpleIntVector

java.lang.Object
  extended by com.ibm.wala.util.intset.SimpleIntVector
All Implemented Interfaces:
IntVector
Direct Known Subclasses:
Path, TunedSimpleIntVector

public class SimpleIntVector
extends java.lang.Object
implements IntVector

simple implementation of IntVector


Constructor Summary
SimpleIntVector(int defaultValue)
           
SimpleIntVector(int defaultValue, int initialSize)
           
 
Method Summary
 int get(int x)
           
 int getMaxIndex()
           
 void performVerboseAction()
           
 void set(int x, int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleIntVector

public SimpleIntVector(int defaultValue)

SimpleIntVector

public SimpleIntVector(int defaultValue,
                       int initialSize)
Method Detail

get

public int get(int x)
Specified by:
get in interface IntVector

set

public void set(int x,
                int value)
Specified by:
set in interface IntVector

performVerboseAction

public void performVerboseAction()

getMaxIndex

public int getMaxIndex()
Specified by:
getMaxIndex in interface IntVector
Returns:
max i s.t set(i) was called.