Class MultiModalIntVector

java.lang.Object
com.ibm.wala.util.intset.MultiModalIntVector
All Implemented Interfaces:
IntVector

public class MultiModalIntVector extends Object implements IntVector
an implementation of IntVector that uses a mix of backing arrays of type int, char, and byte array, in an attempt to save space for common data structures.
  • Constructor Details

    • MultiModalIntVector

      public MultiModalIntVector(int defaultValue)
    • MultiModalIntVector

      public MultiModalIntVector(int defaultValue, int initialSize)
  • Method Details

    • 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
    • getMaxIndex

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

      public void print()