Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: sdk/lib/collection/linked_hash_map.dart

Issue 2974433002: Remaining private libs (Closed)
Patch Set: It's html_common Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sdk/lib/collection/iterator.dart ('k') | sdk/lib/collection/linked_hash_set.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/iterator.dart ('k') | sdk/lib/collection/linked_hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698