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

Side by Side Diff: lib/wrappers.dart

Issue 1315753002: Export UnmodifiableMapView from the Dart core libraries. (Closed) Base URL: git@github.com:dart-lang/collection@master
Patch Set: Code review changes Created 5 years, 4 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 | « lib/src/unmodifiable_wrappers.dart ('k') | no next file » | 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 * Delegating wrappers for [Iterable], [List], [Set], [Queue] and [Map]. 6 * Delegating wrappers for [Iterable], [List], [Set], [Queue] and [Map].
7 * 7 *
8 * Also adds unmodifiable views for `Set` and `Map`, and a fixed length 8 * Also adds unmodifiable views for `Set` and `Map`, and a fixed length
9 * view for `List`. The unmodifable list view from `dart:collection` is exported 9 * view for `List`. The unmodifable list view from `dart:collection` is exported
10 * as well, just for completeness. 10 * as well, just for completeness.
11 */ 11 */
12 library dart.pkg.collection.wrappers; 12 library dart.pkg.collection.wrappers;
13 13
14 import "dart:collection"; 14 import "dart:collection";
15 import "dart:math" show Random; 15 import "dart:math" show Random;
16 16
17 export "dart:collection" show UnmodifiableListView;
18
19 export "src/canonicalized_map.dart"; 17 export "src/canonicalized_map.dart";
20 part "src/unmodifiable_wrappers.dart"; 18 export "src/unmodifiable_wrappers.dart";
21 19
22 /** 20 /**
23 * A base class for delegating iterables. 21 * A base class for delegating iterables.
24 * 22 *
25 * Subclasses can provide a [_base] that should be delegated to. Unlike 23 * Subclasses can provide a [_base] that should be delegated to. Unlike
26 * [DelegatingIterable], this allows the base to be created on demand. 24 * [DelegatingIterable], this allows the base to be created on demand.
27 */ 25 */
28 abstract class _DelegatingIterableBase<E> implements Iterable<E> { 26 abstract class _DelegatingIterableBase<E> implements Iterable<E> {
29 Iterable<E> get _base; 27 Iterable<E> get _base;
30 28
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 * Returns a new set which contains all the elements of [this] and [other]. 559 * Returns a new set which contains all the elements of [this] and [other].
562 * 560 *
563 * That is, the returned set contains all the elements of this [Set] and all 561 * That is, the returned set contains all the elements of this [Set] and all
564 * the elements of [other]. 562 * the elements of [other].
565 * 563 *
566 * Note that the returned set will use the default equality operation, which 564 * Note that the returned set will use the default equality operation, which
567 * may be different than the equality operation [this] uses. 565 * may be different than the equality operation [this] uses.
568 */ 566 */
569 Set<V> union(Set<V> other) => toSet()..addAll(other); 567 Set<V> union(Set<V> other) => toSet()..addAll(other);
570 } 568 }
OLDNEW
« no previous file with comments | « lib/src/unmodifiable_wrappers.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698