| Modifier and Type | Field and Description |
|---|---|
static String |
INT_SET_FACTORY_CONFIG_PROPERTY_NAME |
| Modifier and Type | Method and Description |
|---|---|
static IntSet |
add(IntSet s,
int j) |
static int |
binarySearch(int[] data,
int key,
int low,
int high) |
static IntSet |
diff(IntSet A,
IntSet B)
Compute the asymmetric difference of two sets, a \ b.
|
static IntSet |
diff(IntSet A,
IntSet B,
MutableIntSetFactory<?> factory)
Compute the asymmetric difference of two sets, a \ b.
|
static MutableIntSetFactory<?> |
getDefaultIntSetFactory() |
static MutableIntSet |
make() |
static MutableIntSet |
make(int[] initial) |
static IntSet |
make(Set<Integer> x) |
static MutableIntSet |
makeMutableCopy(IntSet set)
This method constructs an appropriate mutable copy of set.
|
static MutableIntSet |
removeAll(MutableIntSet A,
IntSet B)
Subtract two sets, i.e.
|
static void |
setDefaultIntSetFactory(MutableIntSetFactory<?> defaultIntSetFactory) |
static int[] |
toArray(IntSet s) |
public static final String INT_SET_FACTORY_CONFIG_PROPERTY_NAME
public static MutableIntSet make()
public static MutableIntSet make(int[] initial)
public static MutableIntSet makeMutableCopy(IntSet set) throws IllegalArgumentException, UnimplementedError
MutableIntSet object with the same value as setUnimplementedError - if we haven't supported the set type yet.IllegalArgumentException - if set == nullpublic static IntSet diff(IntSet A, IntSet B)
public static IntSet diff(IntSet A, IntSet B, MutableIntSetFactory<?> factory)
public static MutableIntSet removeAll(MutableIntSet A, IntSet B) throws IllegalArgumentException
IllegalArgumentException - if B == nullpublic static int binarySearch(int[] data,
int key,
int low,
int high)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static MutableIntSetFactory<?> getDefaultIntSetFactory()
public static void setDefaultIntSetFactory(MutableIntSetFactory<?> defaultIntSetFactory)
defaultIntSetFactory - The defaultIntSetFactory to set.public static IntSet add(IntSet s, int j) throws IllegalArgumentException
IllegalArgumentException - if s == nullpublic static int[] toArray(IntSet s)