Example #1
0
        public int hasheq()
        {
            if (_hasheq == -1)
            {
                int n;
                int hash = 1;

                for (n = 0; n < count(); ++n)
                {
                    hash = 31 * hash + Util.hasheq(nth(n));
                }

                _hasheq = Murmur3.MixCollHash(hash, n);
            }
            return(_hasheq);
        }
        public int hasheq()
        {
            int hash = _hasheq;

            if (hash == 0)
            {
                int n;
                hash = 1;

                for (n = 0; n < count(); ++n)
                {
                    hash = 31 * hash + Util.hasheq(nth(n));
                }

                _hasheq = hash = Murmur3.MixCollHash(hash, n);
            }
            return(hash);
        }