| OLD | NEW |
| 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. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 Iterable<E> take(int n) => _base.take(n); | 83 Iterable<E> take(int n) => _base.take(n); |
| 84 | 84 |
| 85 Iterable<E> takeWhile(bool test(E value)) => _base.takeWhile(test); | 85 Iterable<E> takeWhile(bool test(E value)) => _base.takeWhile(test); |
| 86 | 86 |
| 87 List<E> toList({bool growable: true}) => _base.toList(growable: growable); | 87 List<E> toList({bool growable: true}) => _base.toList(growable: growable); |
| 88 | 88 |
| 89 Set<E> toSet() => _base.toSet(); | 89 Set<E> toSet() => _base.toSet(); |
| 90 | 90 |
| 91 Iterable<E> where(bool test(E element)) => _base.where(test); | 91 Iterable<E> where(bool test(E element)) => _base.where(test); |
| 92 |
| 93 String toString() => _base.toString(); |
| 92 } | 94 } |
| 93 | 95 |
| 94 | 96 |
| 95 /** | 97 /** |
| 96 * Creates a [List] that delegates all operations to a base list. | 98 * Creates a [List] that delegates all operations to a base list. |
| 97 * | 99 * |
| 98 * This class can be used hide non-`List` methods of a list object, | 100 * This class can be used hide non-`List` methods of a list object, |
| 99 * or it can be extended to add extra functionality on top of an existing | 101 * or it can be extended to add extra functionality on top of an existing |
| 100 * list object. | 102 * list object. |
| 101 */ | 103 */ |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 326 |
| 325 Iterable<K> get keys => _base.keys; | 327 Iterable<K> get keys => _base.keys; |
| 326 | 328 |
| 327 int get length => _base.length; | 329 int get length => _base.length; |
| 328 | 330 |
| 329 V putIfAbsent(K key, V ifAbsent()) => _base.putIfAbsent(key, ifAbsent); | 331 V putIfAbsent(K key, V ifAbsent()) => _base.putIfAbsent(key, ifAbsent); |
| 330 | 332 |
| 331 V remove(Object key) => _base.remove(key); | 333 V remove(Object key) => _base.remove(key); |
| 332 | 334 |
| 333 Iterable<V> get values => _base.values; | 335 Iterable<V> get values => _base.values; |
| 336 |
| 337 String toString() => _base.toString(); |
| 334 } | 338 } |
| OLD | NEW |