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

Side by Side Diff: lib/src/unmodifiable_wrappers.dart

Issue 1353873002: Fix inconsistent APIs (Closed) Base URL: https://github.com/dart-lang/collection.git@master
Patch Set: Bump version Created 5 years, 3 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 | « CHANGELOG.md ('k') | lib/wrappers.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 /** 5 /**
6 * Wrappers that prevent a List, Set, or Map object from being modified. 6 * Wrappers that prevent a List, Set, or Map object from being modified.
7 * 7 *
8 * The [Set] and [Map] wrappers allow reading from the wrapped collection, 8 * The [Set] and [Map] wrappers allow reading from the wrapped collection,
9 * but prohibit writing. 9 * but prohibit writing.
10 * 10 *
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 /** 220 /**
221 * Throws an [UnsupportedError]; 221 * Throws an [UnsupportedError];
222 * operations that change the map are disallowed. 222 * operations that change the map are disallowed.
223 */ 223 */
224 void addAll(Map<K, V> other) => _throw(); 224 void addAll(Map<K, V> other) => _throw();
225 225
226 /** 226 /**
227 * Throws an [UnsupportedError]; 227 * Throws an [UnsupportedError];
228 * operations that change the map are disallowed. 228 * operations that change the map are disallowed.
229 */ 229 */
230 V remove(K key) => _throw(); 230 V remove(Object key) => _throw();
231 231
232 /** 232 /**
233 * Throws an [UnsupportedError]; 233 * Throws an [UnsupportedError];
234 * operations that change the map are disallowed. 234 * operations that change the map are disallowed.
235 */ 235 */
236 void clear() => _throw(); 236 void clear() => _throw();
237 } 237 }
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | lib/wrappers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698