public static MutableIntSet make() { return defaultIntSetFactory.make(); }
/** * @return a set of integers representing the instance keys that correspond to a given class. This method creates a new set, which * the caller may bash at will. */ MutableIntSet cloneInstanceKeysForClass(IClass klass) { assert klass.getReference() != TypeReference.JavaLangObject; MutableIntSet set = class2InstanceKey.get(klass); if (set == null) { return IntSetUtil.getDefaultIntSetFactory().make(); } else { // return a copy. return IntSetUtil.getDefaultIntSetFactory().makeCopy(set); } }
public static MutableIntSet make() { return defaultIntSetFactory.make(); }
/** * @return a set of integers representing the instance keys that correspond to a given class. This method creates a new set, which * the caller may bash at will. */ MutableIntSet cloneInstanceKeysForClass(IClass klass) { assert klass.getReference() != TypeReference.JavaLangObject; MutableIntSet set = class2InstanceKey.get(klass); if (set == null) { return IntSetUtil.getDefaultIntSetFactory().make(); } else { // return a copy. return IntSetUtil.getDefaultIntSetFactory().makeCopy(set); } }
public static MutableIntSet make(int[] initial) { return defaultIntSetFactory.make(initial); }
public static MutableIntSet make() { return defaultIntSetFactory.make(); }
public static MutableIntSet make(int[] initial) { return defaultIntSetFactory.make(initial); }
protected <K> MutableIntSet findOrCreate(Map<K, MutableIntSet> M, K key) { MutableIntSet result = M.get(key); if (result == null) { result = intSetFactory.make(); M.put(key, result); } return result; }
protected <K> MutableIntSet findOrCreate(Map<K, MutableIntSet> M, K key) { MutableIntSet result = M.get(key); if (result == null) { result = intSetFactory.make(); M.put(key, result); } return result; }
/** * Keep this method private .. this returns the actual backing set for the class, which we do not want to expose to clients. */ private MutableIntSet findOrCreateSparseSetForClass(IClass klass) { assert klass.getReference() != TypeReference.JavaLangObject; MutableIntSet result = class2InstanceKey.get(klass); if (result == null) { result = IntSetUtil.getDefaultIntSetFactory().make(); class2InstanceKey.put(klass, result); } return result; }
/** * Keep this method private .. this returns the actual backing set for the class, which we do not want to expose to clients. */ private MutableIntSet findOrCreateSparseSetForClass(IClass klass) { assert klass.getReference() != TypeReference.JavaLangObject; MutableIntSet result = class2InstanceKey.get(klass); if (result == null) { result = IntSetUtil.getDefaultIntSetFactory().make(); class2InstanceKey.put(klass, result); } return result; }
/** * Set a particular bit * * @param b the bit to set */ public boolean add(int b) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().make(); } return V.add(b); }
/** * Set a particular bit * * @param b the bit to set */ public boolean add(int b) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().make(); } return V.add(b); }
/** * Set a particular bit * * @param b the bit to set */ public boolean add(int b) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().make(); } return V.add(b); }