Subclasses must implement this method and should compute a hashCode similar to this:
            public int hashCode() {
            int code = startOffset;
            code = code * 31 + endOffset;
            return code;
            }
            
see also {@link #equals(Object)}

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public abstract int GetHashCode()
Visual Basic
Public MustOverride Function GetHashCode As Integer
Visual C++
public:
virtual int GetHashCode() abstract override

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Util.AttributeImpl.GetHashCode"]

See Also