20 using System.Runtime.InteropServices;
22 namespace Lucene.Net.Index
39 private int startOffset;
40 private int endOffset;
48 this.endOffset = endOffset;
49 this.startOffset = startOffset;
56 get {
return endOffset; }
57 set { this.endOffset = value; }
64 public int StartOffset
66 get {
return startOffset; }
67 set { this.startOffset = value; }
103 return startOffset == other.startOffset && endOffset == other.endOffset;
106 public override bool Equals(
object obj)
108 if (ReferenceEquals(null, obj))
110 return EndOffset ==
int.MinValue && StartOffset ==
int.MinValue;
116 public override int GetHashCode()
120 return (startOffset*397) ^ endOffset;
126 return left.
Equals(right);
131 return !left.
Equals(right);