OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.io; | 5 part of dart.io; |
6 | 6 |
7 class _Platform { | 7 class _Platform { |
8 external static int _numberOfProcessors(); | 8 external static int _numberOfProcessors(); |
9 external static String _pathSeparator(); | 9 external static String _pathSeparator(); |
10 external static String _operatingSystem(); | 10 external static String _operatingSystem(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 V putIfAbsent(String key, V ifAbsent()) { | 80 V putIfAbsent(String key, V ifAbsent()) { |
81 _map.putIfAbsent(key.toUpperCase(), ifAbsent); | 81 _map.putIfAbsent(key.toUpperCase(), ifAbsent); |
82 } | 82 } |
83 V remove(String key) => _map.remove(key.toUpperCase()); | 83 V remove(String key) => _map.remove(key.toUpperCase()); |
84 void clear() => _map.clear(); | 84 void clear() => _map.clear(); |
85 void forEach(void f(String key, V value)) => _map.forEach(f); | 85 void forEach(void f(String key, V value)) => _map.forEach(f); |
86 Iterable<String> get keys => _map.keys; | 86 Iterable<String> get keys => _map.keys; |
87 Iterable<V> get values => _map.values; | 87 Iterable<V> get values => _map.values; |
88 int get length => _map.length; | 88 int get length => _map.length; |
89 bool get isEmpty => _map.isEmpty; | 89 bool get isEmpty => _map.isEmpty; |
| 90 bool get isNotEmpty => _map.isNotEmpty; |
90 | 91 |
91 Map<String, V> _map; | 92 Map<String, V> _map; |
92 } | 93 } |
OLD | NEW |