Chromium Code Reviews| Index: sdk/lib/collection/hash_map.dart |
| diff --git a/sdk/lib/collection/hash_map.dart b/sdk/lib/collection/hash_map.dart |
| index 431c89f5dc21dcc2eecb501073fe495d326a0c1a..42a3b6ef8723e2b50a6e8e01021bcc83237a989a 100644 |
| --- a/sdk/lib/collection/hash_map.dart |
| +++ b/sdk/lib/collection/hash_map.dart |
| @@ -4,6 +4,17 @@ |
| part of dart.collection; |
| +/** |
| + * A hash-table based implementation of [Map]. |
| + * |
| + * The keys of a `HashMap` must have consistent [Object.operator==] |
| + * and [Object.hashCode] implementations. This means that the `==` operator |
| + * must define a stable equivalence relation on the keys (reflexive, |
| + * anti-symmetric, trasitive, and consistent over time), and that `hashCode` |
|
ngeoffray
2013/06/04 11:51:33
trasitive -> transitive
|
| + * must be the same for objects that are considered equal by `==`. |
| + * |
| + * The map allows `null` as an key. |
|
ngeoffray
2013/06/04 11:51:33
an -> a
|
| + */ |
| class HashMap<K, V> implements Map<K, V> { |
| external HashMap(); |