/// <summary> /// Eqauls override. /// </summary> /// <param name="other">The object to compare.</param> /// <returns>True if equal.</returns> public override bool Equals(object other) { if (other == this) { return(true); } if (other is SimpleUnicodeTermAttribute) { SimpleUnicodeTermAttribute o = (SimpleUnicodeTermAttribute)other; return(o._startOffset == _startOffset && o._endOffset == _endOffset); } return(false); }
/// <summary> /// Copy the offset. /// </summary> /// <param name="target">The target.</param> public override void CopyTo(Lucene.Net.Util.Attribute target) { SimpleUnicodeTermAttribute t = (SimpleUnicodeTermAttribute)target; t.SetOffset(_startOffset, _endOffset); }