Class BitSet<T>

java.lang.Object
com.ibm.wala.util.intset.BitSet<T>

@Deprecated(since="1.9.0") public final class BitSet<T> extends Object
Deprecated.
Use an IntSet such as MutableSparseIntSet or BitVectorIntSet together with an OrdinalSetMapping instead. This class has no known use within WALA.
A bit set is a set of elements, each of which corresponds to a unique integer from [0,MAX].
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Constructor: create an empty set corresponding to a given mapping
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T o)
    Deprecated.
    Add an object to this bit set.
    void
    addAll(BitSet<?> B)
    Deprecated.
    Add all elements in bitset B to this bit set
    void
    Deprecated.
    Add all bits in BitVector B to this bit set
    void
    clear(T o)
    Deprecated.
    Remove an object from this bit set.
    void
    Deprecated.
    Set all the bits to 0.
    boolean
    Deprecated.
    Does this set contain a certain object?
    void
    copyBits(BitSet<T> other)
    Deprecated.
    Method copy.
    static <T> BitSet<T>
    Deprecated.
     
    void
    Deprecated.
    Perform the difference of two bit sets
    void
    intersect(BitSet<?> other)
    Deprecated.
    Perform intersection of two bitsets
    boolean
    Deprecated.
     
    Deprecated.
    Not very efficient.
    int
    Deprecated.
     
    boolean
    sameBits(BitSet<?> other)
    Deprecated.
    Does this object hold the same bits as other?
    void
    Deprecated.
    Set all the bits to 1.
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • createBitSet

      public static <T> BitSet<T> createBitSet(BitSet<T> B)
      Deprecated.
    • addAll

      public void addAll(BitSet<?> B)
      Deprecated.
      Add all elements in bitset B to this bit set
      Throws:
      IllegalArgumentException - if B is null
    • addAll

      public void addAll(BitVector B)
      Deprecated.
      Add all bits in BitVector B to this bit set
    • add

      public void add(T o)
      Deprecated.
      Add an object to this bit set.
    • clear

      public void clear(T o)
      Deprecated.
      Remove an object from this bit set.
      Parameters:
      o - the object to remove
    • contains

      public boolean contains(T o)
      Deprecated.
      Does this set contain a certain object?
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
      Returns:
      a String representation
    • copyBits

      public void copyBits(BitSet<T> other)
      Deprecated.
      Method copy. Copies the bits in the bit vector, but only assigns the object map. No need to create a new object/bit bijection object.
      Throws:
      IllegalArgumentException - if other is null
    • sameBits

      public boolean sameBits(BitSet<?> other)
      Deprecated.
      Does this object hold the same bits as other?
      Throws:
      IllegalArgumentException - if other is null
    • iterator

      public Iterator<T> iterator()
      Deprecated.
      Not very efficient.
    • size

      public int size()
      Deprecated.
    • length

      public int length()
      Deprecated.
    • clearAll

      public void clearAll()
      Deprecated.
      Set all the bits to 0.
    • setAll

      public void setAll()
      Deprecated.
      Set all the bits to 1.
    • intersect

      public void intersect(BitSet<?> other)
      Deprecated.
      Perform intersection of two bitsets
      Parameters:
      other - the other bitset in the operation
      Throws:
      IllegalArgumentException - if other is null
    • difference

      public void difference(BitSet<T> other)
      Deprecated.
      Perform the difference of two bit sets
      Parameters:
      other - the other bitset in the operation
      Throws:
      IllegalArgumentException - if other is null
    • isEmpty

      public boolean isEmpty()
      Deprecated.