示例#1
0
        public override int GetHashCode()
        {
            InitTermBuffer();
            int code = termLength;

            code = code * 31 + ArrayUtil.HashCode(termBuffer, 0, termLength);
            return(code);
        }
示例#2
0
        public override int GetHashCode()
        {
            InitTermBuffer();
            int code = termLength;

            code = code * 31 + startOffset;
            code = code * 31 + endOffset;
            code = code * 31 + flags;
            code = code * 31 + positionIncrement;
            code = code * 31 + type.GetHashCode();
            code = (payload == null ? code : code * 31 + payload.GetHashCode());
            code = code * 31 + ArrayUtil.HashCode(termBuffer, 0, termLength);
            return(code);
        }
示例#3
0
 public override int GetHashCode()
 {
     return(ArrayUtil.HashCode(data, offset, offset + length));
 }
示例#4
0
 public override int GetHashCode()
 {
     return(ArrayUtil.HashCode(data, internalOffset, internalOffset + internalLength));
 }