hasheq() private méthode

private hasheq ( object o ) : int
o object
Résultat int
Exemple #1
0
 public int hasheq()
 {
     if (_hasheq == 0)
     {
         _hasheq = Util.hashCombine(Murmur3.HashString(_name), Util.hasheq(_ns));
     }
     return(_hasheq);
 }
Exemple #2
0
        public int hasheq()
        {
            ISeq s = seq();

            if (s == null)
            {
                return(1);
            }
            return(Util.hasheq(s));
        }
Exemple #3
0
        public int hasheq()
        {
            int hash = 1;

            foreach (object o in this)
            {
                hash = 31 * hash + Util.hasheq(o);
            }
            return(hash);
        }
Exemple #4
0
        public int hasheq()
        {
            int hash = 0;

            for (ISeq s = this.seq(); s != null; s = s.next())
            {
                IMapEntry e = (IMapEntry)s.first();
                hash += Util.hasheq(e.key()) ^ Util.hasheq(e.val());
            }
            return(hash);
        }
        public static int mapHasheq(IPersistentMap m)
        {
            int hash = 0;

            for (ISeq s = m.seq(); s != null; s = s.next())
            {
                IMapEntry e = (IMapEntry)s.first();
                hash += Util.hasheq(e.key()) ^ Util.hasheq(e.val());
            }
            return(hash);
        }
        public int hasheq()
        {
            int hash = 0;

            for (ISeq s = seq(); s != null; s = s.next())
            {
                object e = s.first();
                hash += Util.hasheq(e);
            }
            return(hash);
        }
Exemple #7
0
        public int hasheq()
        {
            int hash = 1;

            for (ISeq s = seq(); s != null; s = s.next())
            {
                hash = 31 * hash + Util.hasheq(s.first());
            }

            return(hash);
        }
Exemple #8
0
        public static uint HashOrderedU(IEnumerable xs)
        {
            int  n    = 0;
            uint hash = 1;

            foreach (Object x in xs)
            {
                hash = 31 * hash + unchecked ((uint)Util.hasheq(x));
                ++n;
            }
            return(FinalizeCollHash(hash, n));
        }
Exemple #9
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;
     }
     return(_hasheq);
 }
 public int hasheq()
 {
     if (_hasheq == -1)
     {
         int hash = 1;
         foreach (object o in this)
         {
             hash = 31 * hash + Util.hasheq(o);
         }
         _hasheq = hash;
     }
     return(_hasheq);
 }
Exemple #11
0
 public int hasheq()
 {
     if (_hasheq == -1)
     {
         int hash = 0;
         for (ISeq s = seq(); s != null; s = s.next())
         {
             object e = s.first();
             hash += Util.hasheq(e);
         }
         _hasheq = hash;
     }
     return(_hasheq);
 }
Exemple #12
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);
        }
Exemple #14
0
 /// <summary>
 /// Compute the hash code for the symbol.
 /// </summary>
 /// <returns>The hash code.</returns>
 private int ComputeHashCode()
 {
     return(Util.hashCombine(Util.hasheq(_name), Util.hasheq(_ns)));
 }