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

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

Issue 2911903002: Use relative URIs for core library part-of statements. (Closed)
Patch Set: Fix warnings in web-sockets tests, typo in fasta. 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/collections.dart ('k') | sdk/lib/collection/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 dart.collection; 5 part of "collection.dart";
6 6
7 /** Default function for equality comparison in customized HashMaps */ 7 /** Default function for equality comparison in customized HashMaps */
8 bool _defaultEquals(a, b) => a == b; 8 bool _defaultEquals(a, b) => a == b;
9 /** Default function for hash-code computation in customized HashMaps */ 9 /** Default function for hash-code computation in customized HashMaps */
10 int _defaultHashCode(a) => a.hashCode; 10 int _defaultHashCode(a) => a.hashCode;
11 11
12 /** Type of custom equality function */ 12 /** Type of custom equality function */
13 typedef bool _Equality<K>(K a, K b); 13 typedef bool _Equality<K>(K a, K b);
14 /** Type of custom hash code function. */ 14 /** Type of custom hash code function. */
15 typedef int _Hasher<K>(K object); 15 typedef int _Hasher<K>(K object);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 * overwrites the previous value. 139 * overwrites the previous value.
140 * 140 *
141 * It is an error if the two [Iterable]s don't have the same length. 141 * It is an error if the two [Iterable]s don't have the same length.
142 */ 142 */
143 factory HashMap.fromIterables(Iterable<K> keys, Iterable<V> values) { 143 factory HashMap.fromIterables(Iterable<K> keys, Iterable<V> values) {
144 HashMap<K, V> map = new HashMap<K, V>(); 144 HashMap<K, V> map = new HashMap<K, V>();
145 Maps._fillMapWithIterables(map, keys, values); 145 Maps._fillMapWithIterables(map, keys, values);
146 return map; 146 return map;
147 } 147 }
148 } 148 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/collection/hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698