AbstractMap.toHash

Returns the hash code value for this map. The hash code of a map is defined to be the sum of the hash codes of each entry in the map's <tt>entrySet()</tt> view. This ensures that <tt>m1.equals(m2)</tt> implies that <tt>m1.toHash()==m2.toHash()</tt> for any two maps <tt>m1</tt> and <tt>m2</tt>, as required by the general contract of {@link Object#toHash}.

@implSpec This implementation iterates over <tt>entrySet()</tt>, calling {@link MapEntry#toHash toHash()} on each element (entry) in the set, and adding up the results.

@return the hash code value for this map @see MapEntry#toHash() @see Object#equals(Object) @see Set#equals(Object)

class AbstractMap(K, V)
override @trusted nothrow
size_t
toHash
()

Meta