public boolean equals(Object other) {return sameClassAs(other) &&equalsTo(getClass().cast(other));}

public override bool Equals(object o){if (!(o is NGramPhraseQuery)){return false;}NGramPhraseQuery other = (NGramPhraseQuery)o;if (this.n != other.n){return false;}return base.Equals(other);}
