OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library services.src.index.store.collection; | 5 library services.src.index.store.collection; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:typed_data'; | 8 import 'dart:typed_data'; |
9 | 9 |
10 | 10 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 * not in the map. | 107 * not in the map. |
108 */ | 108 */ |
109 List<int> get(int key) { | 109 List<int> get(int key) { |
110 List<int> values = _map[key]; | 110 List<int> values = _map[key]; |
111 if (values == null) { | 111 if (values == null) { |
112 values = <int>[]; | 112 values = <int>[]; |
113 } | 113 } |
114 return values; | 114 return values; |
115 } | 115 } |
116 } | 116 } |
OLD | NEW |