Пример #1
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;
 }
Пример #2
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();
 }
Пример #3
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();
 }
Пример #4
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(15);
     hash.combine(bin);
     hash.combine(pad_bits);
     return hash.valueOf();
 }
Пример #5
0
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(5);
     hash.combine(creation, serial);
     hash.combine(id, node.GetHashCode());
     return hash.valueOf();
 }
Пример #6
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();
 }
 protected override int doHashCode()
 {
     OtpErlangObject.Hash hash = new OtpErlangObject.Hash(14);
     hash.combine(module.GetHashCode(), function.GetHashCode());
     hash.combine(arity);
     return hash.valueOf();
 }