hashCombine() private method

private hashCombine ( int seed, int hash ) : int
seed int
hash int
return int
Ejemplo n.º 1
0
 public int hasheq()
 {
     if (_hasheq == 0)
     {
         _hasheq = Util.hashCombine(Murmur3.HashString(_name), Util.hasheq(_ns));
     }
     return(_hasheq);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get the hash code for the current object.
 /// </summary>
 /// <returns>The hash code.</returns>
 /// <remarks>Result is cached.</remarks>
 public override int GetHashCode()
 {
     if (_hash == -1)
     {
         int hash = 0;
         for (ISeq s = seq(); s != null; s = s.next())
         {
             hash = Util.hashCombine(hash, Util.hash(s.first()));
         }
         _hash = hash;
     }
     return(_hash);
 }
Ejemplo n.º 3
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)));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Get the hash code.
 /// </summary>
 /// <returns>The hash code.</returns>
 public override int GetHashCode()
 {
     return(Util.hashCombine(_name.GetHashCode(), Util.hash(_ns)));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Compute the hash code for the symbol.
 /// </summary>
 /// <returns>The hash code.</returns>
 private int ComputeHashCode()
 {
     return(Util.hashCombine(_name.GetHashCode(), Util.hash(_ns)));
 }