org.apache.lucene.analysis.miscellaneous.PatternAnalyzer.Equals C# (CSharp) Method

Equals() public method

Indicates whether some other object is "equal to" this one.
public Equals ( object other ) : bool
other object /// the reference object with which to compare.
return bool
	  public override bool Equals(object other)
	  {
		if (this == other)
		{
			return true;
		}
		if (this == DEFAULT_ANALYZER && other == EXTENDED_ANALYZER)
		{
			return false;
		}
		if (other == DEFAULT_ANALYZER && this == EXTENDED_ANALYZER)
		{
			return false;
		}

		if (other is PatternAnalyzer)
		{
		  PatternAnalyzer p2 = (PatternAnalyzer) other;
		  return toLowerCase == p2.toLowerCase && eqPattern(pattern, p2.pattern) && eq(stopWords, p2.stopWords);
		}
		return false;
	  }