Example #1
0
 public int hasheq()
 {
     if (_hasheq == -1)
     {
         _hasheq = Murmur3.HashOrdered(this);
     }
     return(_hasheq);
 }
 public int hasheq()
 {
     if (_hasheq == -1)
     {
         //int hash = 1;
         //foreach (object o in this)
         //    hash = 31 * hash + Util.hasheq(o);
         //_hasheq = hash;
         _hasheq = Murmur3.HashOrdered(this);
     }
     return(_hasheq);
 }
Example #3
0
        public int hasheq()
        {
            if (_hasheq == -1)
            {
                //int hash = 1;
                //for (ISeq s = seq(); s != null; s = s.next())
                //    hash = 31 * hash + Util.hasheq(s.first());

                //_hasheq = hash;
                _hasheq = Murmur3.HashOrdered(this);
            }
            return(_hasheq);
        }
        public int hasheq()
        {
            int cached = _hasheq;

            if (cached == 0)
            {
                //int hash = 1;
                //for (ISeq s = seq(); s != null; s = s.next())
                //{
                //    hash = 31 * hash + Util.hasheq(s.first());
                //}
                //_hasheq = hash;
                _hasheq = cached = Murmur3.HashOrdered(this);
            }
            return(cached);
        }
Example #5
0
 public int hasheq()
 {
     return(Murmur3.HashOrdered(this));
 }