| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 * A [List] is an indexable collection with a length. It can be of | 6 * A [List] is an indexable collection with a length. It can be of |
| 7 * fixed size or extendable. | 7 * fixed size or extendable. |
| 8 */ | 8 */ |
| 9 interface List<E> extends Collection<E> default ListImplementation<E> { | 9 interface List<E> extends Collection<E> default ListImplementation<E> { |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 * not extendable. | 147 * not extendable. |
| 148 * If [length] is 0, this method does not do anything. | 148 * If [length] is 0, this method does not do anything. |
| 149 * If [start] is the length of the list, this method inserts the | 149 * If [start] is the length of the list, this method inserts the |
| 150 * range at the end of the list. | 150 * range at the end of the list. |
| 151 * Throws an [IllegalArgumentException] if [length] is negative. | 151 * Throws an [IllegalArgumentException] if [length] is negative. |
| 152 * Throws an [IndexOutOfRangeException] if [start] is negative or if | 152 * Throws an [IndexOutOfRangeException] if [start] is negative or if |
| 153 * [start] is greater than the length of the list. | 153 * [start] is greater than the length of the list. |
| 154 */ | 154 */ |
| 155 void insertRange(int start, int length, [E initialValue]); | 155 void insertRange(int start, int length, [E initialValue]); |
| 156 } | 156 } |
| OLD | NEW |