OLD | NEW |
1 part of dart.collection; | 1 part of dart.collection; |
2 abstract class LinkedHashMap<K, V> implements HashMap<K, V> {external factory L
inkedHashMap({ | 2 abstract class LinkedHashMap<K, V> implements HashMap<K, V> {external factory L
inkedHashMap({ |
3 bool equals(K key1, K key2), int hashCode(K key), bool isValidKey(potentialKey
)} | 3 bool equals(K key1, K key2), int hashCode(K key), bool isValidKey(potentialKey
)} |
4 ); | 4 ); |
5 external factory LinkedHashMap.identity(); | 5 external factory LinkedHashMap.identity(); |
6 factory LinkedHashMap.from(Map other) { | 6 factory LinkedHashMap.from(Map other) { |
7 LinkedHashMap<K, V> result = new LinkedHashMap<K, V>(); | 7 LinkedHashMap<K, V> result = new LinkedHashMap<K, V>(); |
8 other.forEach((k, v) { | 8 other.forEach((k, v) { |
9 result[k] = DEVC$RT.cast(v, dynamic, V, "CompositeCast", """line 74, column
40 of dart:collection/linked_hash_map.dart: """, v is V, false); | 9 result[DEVC$RT.cast(k, dynamic, K, "CompositeCast", """line 74, column 35 of
dart:collection/linked_hash_map.dart: """, k is K, false)] = DEVC$RT.cast(v, dy
namic, V, "CompositeCast", """line 74, column 40 of dart:collection/linked_hash_
map.dart: """, v is V, false); |
10 } | 10 } |
11 ); | 11 ); |
12 return result; | 12 return result; |
13 } | 13 } |
14 factory LinkedHashMap.fromIterable(Iterable iterable, { | 14 factory LinkedHashMap.fromIterable(Iterable iterable, { |
15 K key(element), V value(element)} | 15 K key(element), V value(element)} |
16 ) { | 16 ) { |
17 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); | 17 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); |
18 Maps._fillMapWithMappedIterable(map, iterable, key, value); | 18 Maps._fillMapWithMappedIterable(map, iterable, key, value); |
19 return map; | 19 return map; |
20 } | 20 } |
21 factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) { | 21 factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) { |
22 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); | 22 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); |
23 Maps._fillMapWithIterables(map, keys, values); | 23 Maps._fillMapWithIterables(map, keys, values); |
24 return map; | 24 return map; |
25 } | 25 } |
26 } | 26 } |
OLD | NEW |