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

GetHashCode() public method

Returns a hash code value for the object.
public GetHashCode ( ) : int
return int
	  public override int GetHashCode()
	  {
		if (this == DEFAULT_ANALYZER) // fast path
		{
			return -1218418418;
		}
		if (this == EXTENDED_ANALYZER) // fast path
		{
			return 1303507063;
		}

		int h = 1;
		h = 31 * h + pattern.pattern().GetHashCode();
		h = 31 * h + pattern.flags();
		h = 31 * h + (toLowerCase ? 1231 : 1237);
		h = 31 * h + (stopWords != null ? stopWords.GetHashCode() : 0);
		return h;
	  }