Example #1
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(15);
     hash.combine(bin);
     hash.combine(pad_bits);
     return(hash.valueOf());
 }
Example #2
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(14);
     hash.combine(module.GetHashCode(), function.GetHashCode());
     hash.combine(arity);
     return(hash.valueOf());
 }
Example #3
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(5);
     hash.combine(creation, serial);
     hash.combine(id, node.GetHashCode());
     return(hash.valueOf());
 }
Example #4
0
 /**
  * Compute the hashCode value for a given ref. This function is compatible
  * with equal.
  *
  * @return the hashCode of the node.
  **/
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(7);
     hash.combine(creation, ids[0]);
     if (isNewRef())
     {
         hash.combine(ids[1], ids[2]);
     }
     return(hash.valueOf());
 }
Example #5
0
 public override int GetHashCode()
 {
     if (hashCodeValue == 0)
     {
         OtpErlangObject.Hash hash = new OtpErlangObject.Hash(5);
         hash.combine(local.GetHashCode() + remote.GetHashCode());
         hashCodeValue = hash.valueOf();
     }
     return(hashCodeValue);
 }
 public override int GetHashCode()
 {
     if (hashCodeValue == 0)
     {
         OtpErlangObject.Hash hash = new OtpErlangObject.Hash(5);
         hash.combine(local.GetHashCode() + remote.GetHashCode());
         hashCodeValue = hash.valueOf();
     }
     return hashCodeValue;
 }
Example #7
0
        protected override int doHashCode()
        {
            OtpErlangObject.Hash hash = new OtpErlangObject.Hash(9);
            int a = arity();

            hash.combine(a);
            for (int i = 0; i < a; i++)
            {
                hash.combine(elems[i].GetHashCode());
            }
            return(hash.valueOf());
        }
Example #8
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(1);
     hash.combine(pid.GetHashCode(), module.GetHashCode());
     hash.combine(arity);
     if (md5 != null)
     {
         hash.combine(md5);
     }
     hash.combine(index);
     hash.combine(uniq);
     if (freeVars != null)
     {
         foreach (OtpErlangObject o in freeVars)
         {
             hash.combine(o.GetHashCode(), 1);
         }
     }
     return(hash.valueOf());
 }
Example #9
0
        protected override int doHashCode()
        {
            OtpErlangObject.Hash hash = new OtpErlangObject.Hash(4);
            int a = arity();

            if (a == 0)
            {
                return(unchecked ((int)3468870702L));
            }
            for (int i = 0; i < a; i++)
            {
                hash.combine(elementAt(i).GetHashCode());
            }
            OtpErlangObject t = getLastTail();

            if (t != null)
            {
                int h = t.GetHashCode();
                hash.combine(h, h);
            }
            return(hash.valueOf());
        }
Example #10
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(6);
     hash.combine(Creation);
     hash.combine(id, node.GetHashCode());
     return hash.valueOf();
 }
Example #11
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(15);
     hash.combine(bin);
     hash.combine(pad_bits);
     return hash.valueOf();
 }
Example #12
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(9);
     int a = arity();
     hash.combine(a);
     for (int i = 0; i < a; i++)
     {
         hash.combine(elems[i].GetHashCode());
     }
     return hash.valueOf();
 }
Example #13
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(1);
     hash.combine(pid.GetHashCode(), module.GetHashCode());
     hash.combine(arity);
     if (md5 != null) hash.combine(md5);
     hash.combine(index);
     hash.combine(uniq);
     if (freeVars != null)
     {
         foreach (OtpErlangObject o in freeVars)
         {
             hash.combine(o.GetHashCode(), 1);
         }
     }
     return hash.valueOf();
 }
 /**
  * Compute the hashCode value for a given ref. This function is compatible
  * with equal.
  *
  * @return the hashCode of the node.
  **/
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(7);
     hash.combine(creation, ids[0]);
     if (isNewRef())
     {
         hash.combine(ids[1], ids[2]);
     }
     return hash.valueOf();
 }
Example #15
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(4);
     int a = arity();
     if (a == 0)
     {
         return unchecked((int)3468870702L);
     }
     for (int i = 0; i < a; i++)
     {
         hash.combine(elementAt(i).GetHashCode());
     }
     OtpErlangObject t = getLastTail();
     if (t != null)
     {
         int h = t.GetHashCode();
         hash.combine(h, h);
     }
     return hash.valueOf();
 }
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(14);
     hash.combine(module.GetHashCode(), function.GetHashCode());
     hash.combine(arity);
     return hash.valueOf();
 }