| 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.core; | 5 part of dart.core; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A [List] is an indexable collection with a length. | 8 * A [List] is an indexable collection with a length. |
| 9 * | 9 * |
| 10 * A `List` implementation can be choose not to support all methods | 10 * A `List` implementation can choose not to support all methods |
| 11 * of the `List` interface. | 11 * of the `List` interface. |
| 12 * | 12 * |
| 13 * The most common list types are: | 13 * The most common list types are: |
| 14 * * Fixed length list. It is an error to use operations that can change | 14 * * Fixed length list. It is an error to use operations that can change |
| 15 * the list's length. | 15 * the list's length. |
| 16 * * Growable list. Full implementation of the interface. | 16 * * Growable list. Full implementation of the interface. |
| 17 * * Unmodifiable list. It is an error to use operations that can change | 17 * * Unmodifiable list. It is an error to use operations that can change |
| 18 * the list's length, or that can change the values of the list. | 18 * the list's length, or that can change the values of the list. |
| 19 * If an unmodifable list is backed by another modifiable data structure, | 19 * If an unmodifable list is backed by another modifiable data structure, |
| 20 * the values read from it may still change over time. | 20 * the values read from it may still change over time. |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 void insertRange(int start, int length, [E fill]); | 260 void insertRange(int start, int length, [E fill]); |
| 261 | 261 |
| 262 /** | 262 /** |
| 263 * Returns an unmodifiable [Map] view of `this`. | 263 * Returns an unmodifiable [Map] view of `this`. |
| 264 * | 264 * |
| 265 * It has the indices of this list as keys, and the corresponding elements | 265 * It has the indices of this list as keys, and the corresponding elements |
| 266 * as values. | 266 * as values. |
| 267 */ | 267 */ |
| 268 Map<int, E> asMap(); | 268 Map<int, E> asMap(); |
| 269 } | 269 } |
| OLD | NEW |