Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.Equals C# (CSharp) Method

Equals() public method

public Equals ( System obj ) : bool
obj System
return bool
			public  override bool Equals(System.Object obj)
			{
				if (this == obj)
					return true;
				if (obj == null)
					return false;
				if (GetType() != obj.GetType())
					return false;
				
				ConstantScoreAutoRewrite other = (ConstantScoreAutoRewrite) obj;
				if (other.termCountCutoff != termCountCutoff)
				{
					return false;
				}
				
				if (BitConverter.DoubleToInt64Bits(other.docCountPercent) != BitConverter.DoubleToInt64Bits(docCountPercent))
				{
					return false;
				}
				
				return true;
			}
		}