| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of "collection.dart"; | 5 part of "dart:collection"; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A hash-table based implementation of [Map]. | 8 * A hash-table based implementation of [Map]. |
| 9 * | 9 * |
| 10 * The insertion order of keys is remembered, | 10 * The insertion order of keys is remembered, |
| 11 * and keys are iterated in the order they were inserted into the map. | 11 * and keys are iterated in the order they were inserted into the map. |
| 12 * Values are iterated in their corresponding key's order. | 12 * Values are iterated in their corresponding key's order. |
| 13 * Changing a key's value, when the key is already in the map, | 13 * Changing a key's value, when the key is already in the map, |
| 14 * does not change the iteration order, | 14 * does not change the iteration order, |
| 15 * but removing the key and adding it again | 15 * but removing the key and adding it again |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 * overwrites the previous value. | 126 * overwrites the previous value. |
| 127 * | 127 * |
| 128 * It is an error if the two [Iterable]s don't have the same length. | 128 * It is an error if the two [Iterable]s don't have the same length. |
| 129 */ | 129 */ |
| 130 factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) { | 130 factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) { |
| 131 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); | 131 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); |
| 132 Maps._fillMapWithIterables(map, keys, values); | 132 Maps._fillMapWithIterables(map, keys, values); |
| 133 return map; | 133 return map; |
| 134 } | 134 } |
| 135 } | 135 } |
| OLD | NEW |