soot.util
Class IntSet

java.lang.Object
  |
  +--soot.util.IntSet

public class IntSet
extends java.lang.Object

A space efficient (internal int array) implementation of the java.util.BitSet functionality.

This class is useful for sparse bit sets. In addition to the methods of BitSet, this class provides a useful elements() method.


Constructor Summary
IntSet()
           
 
Method Summary
 void and(IntSet set)
           
 void clear(int bit)
           
 java.lang.Object clone()
           
 int elementCount()
           
 int[] elements()
           
 boolean equals(java.lang.Object obj)
           
 boolean get(int bit)
           
 int hashCode()
           
 void or(IntSet set)
           
 void set(int bit)
           
 int size()
          Returns the size as if it was a BitSet
 java.lang.String toString()
           
 void xor(IntSet set)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntSet

public IntSet()
Method Detail

and

public void and(IntSet set)

clear

public void clear(int bit)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

get

public boolean get(int bit)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

or

public void or(IntSet set)

set

public void set(int bit)

size

public int size()
Returns the size as if it was a BitSet

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

xor

public void xor(IntSet set)

elementCount

public int elementCount()

elements

public int[] elements()