Class SparseIntSet

java.lang.Object
com.ibm.wala.util.intset.SparseIntSet
All Implemented Interfaces:
IntSet, Serializable
Direct Known Subclasses:
MutableSparseIntSet

public class SparseIntSet extends Object implements IntSet
A sparse ordered, duplicate-free, fully-encapsulated set of integers; not necessary mutable
See Also:
  • Field Details

    • elements

      protected int[] elements
      The backing store of int arrays
    • size

      protected int size
      The number of entries in the backing store that are valid.
  • Constructor Details

    • SparseIntSet

      protected SparseIntSet(int size)
    • SparseIntSet

      protected SparseIntSet(int[] backingArray)
      Subclasses should use this with extreme care. Do not allow the backing array to escape elsewhere.
    • SparseIntSet

      @NullUnmarked public SparseIntSet()
      Subclasses should use this with extreme care.
    • SparseIntSet

      protected SparseIntSet(SparseIntSet S)
    • SparseIntSet

      public SparseIntSet(IntSet S) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
  • Method Details