public class LongSetUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INT_SET_FACTORY_CONFIG_PROPERTY_NAME |
| Constructor and Description |
|---|
LongSetUtil() |
| Modifier and Type | Method and Description |
|---|---|
static LongSet |
add(LongSet s,
int j) |
static int |
binarySearch(long[] data,
long key,
int low,
int high) |
static LongSet |
diff(LongSet A,
LongSet B)
Compute the asymmetric difference of two sets, a \ b.
|
static LongSet |
diff(LongSet A,
LongSet B,
MutableLongSetFactory factory)
Compute the asymmetric difference of two sets, a \ b.
|
static MutableLongSetFactory |
getDefaultLongSetFactory() |
static MutableLongSet |
make() |
static MutableLongSet |
makeMutableCopy(LongSet set)
This method constructs an appropriate mutable copy of set.
|
static MutableLongSet |
removeAll(MutableLongSet A,
LongSet B)
Subtract two sets, i.e.
|
static void |
setDefaultLongSetFactory(MutableLongSetFactory defaultLongSetFactory) |
public static final String INT_SET_FACTORY_CONFIG_PROPERTY_NAME
public static MutableLongSet make()
public static MutableLongSet makeMutableCopy(LongSet set) throws IllegalArgumentException, UnimplementedError
UnimplementedError - if (not ( set instanceof com.ibm.wala.util.intset.SparseLongSet ) )
and (not ( set instanceof com.ibm.wala.util.intset.BitVectorLongSet ) ) and (not ( set
instanceof com.ibm.wala.util.intset.BimodalMutableLongSet ) ) and (not ( set instanceof
com.ibm.wala.util.intset.DebuggingMutableLongSet ) ) and (not ( set instanceof
com.ibm.wala.util.intset.SemiSparseMutableLongSet ) ) and (not ( set instanceof
com.ibm.wala.util.intset.MutableSharedBitVectorLongSet ) )IllegalArgumentException - if set == nullpublic static LongSet diff(LongSet A, LongSet B)
public static LongSet diff(LongSet A, LongSet B, MutableLongSetFactory factory)
public static MutableLongSet removeAll(MutableLongSet A, LongSet B) throws IllegalArgumentException
IllegalArgumentException - if A == null || B == nullpublic static int binarySearch(long[] data,
long key,
int low,
int high)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static MutableLongSetFactory getDefaultLongSetFactory()
public static void setDefaultLongSetFactory(MutableLongSetFactory defaultLongSetFactory)
public static LongSet add(LongSet s, int j) throws IllegalArgumentException
IllegalArgumentException - if s == null