22 namespace Lucene.Net.Analysis.Tokenattributes
52 private int positionIncrement = 1;
58 public virtual int PositionIncrement
63 throw new System.ArgumentException(
"Increment must be zero or greater: " + value);
64 this.positionIncrement = value;
66 get {
return positionIncrement; }
69 public override void Clear()
71 this.positionIncrement = 1;
74 public override bool Equals(System.Object other)
83 return positionIncrement == ((PositionIncrementAttribute) other).positionIncrement;
89 public override int GetHashCode()
91 return positionIncrement;
100 override public System.Object Clone()
103 impl.positionIncrement = positionIncrement;