public void Remove(IntIterator iter) { while (iter.HasNext()) { Remove(iter.Next()); } }
public void Add(IntIterator indices) { while (indices.HasNext()) { bitset.Set(indices.Next(), true); } }
public void Add(IntIterator iter) { while (iter.HasNext()) { Add(iter.Next()); } }
public bool Equals_obj(object obj) { if (this == obj) { return(true); } if (!(obj is IntSet)) { return(false); } IntSet set = (IntSet)obj; IntIterator a = this.Iterator(); IntIterator b = set.Iterator(); while (a.HasNext() && b.HasNext()) { if (a.Next() != b.Next()) { return(false); } } if (a.HasNext() || b.HasNext()) { return(false); } return(true); }