Lucene.Net.Util.OpenBitSet.Intersects C# (CSharp) Method

Intersects() public method

returns true if the sets have any elements in common
public Intersects ( OpenBitSet other ) : bool
other OpenBitSet
return bool
		public virtual bool Intersects(OpenBitSet other)
		{
			int pos = System.Math.Min(this.wlen, other.wlen);
			long[] thisArr = this.internalbits;
			long[] otherArr = other.internalbits;
			while (--pos >= 0)
			{
				if ((thisArr[pos] & otherArr[pos]) != 0)
					return true;
			}
			return false;
		}