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

Side by Side Diff: lib/core/list.dart

Issue 10985039: Add documentation of List constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 2011, 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 /** 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
11 /** 11 /**
12 * Creates a list of the given [length]. 12 * Creates a list of the given [length].
13 *
14 * If no [length] argument is supplied an extendable list of
15 * length 0 is created.
16 *
17 * If a [length] argument is supplied, a fixed size list of that
18 * length is created.
13 */ 19 */
14 List([int length]); 20 List([int length]);
15 21
16 /** 22 /**
17 * Creates a list with the elements of [other]. The order in 23 * Creates a list with the elements of [other]. The order in
18 * the list will be the order provided by the iterator of [other]. 24 * the list will be the order provided by the iterator of [other].
19 */ 25 */
20 List.from(Iterable<E> other); 26 List.from(Iterable<E> other);
21 27
22 /** 28 /**
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 * not extendable. 167 * not extendable.
162 * If [length] is 0, this method does not do anything. 168 * If [length] is 0, this method does not do anything.
163 * If [start] is the length of the list, this method inserts the 169 * If [start] is the length of the list, this method inserts the
164 * range at the end of the list. 170 * range at the end of the list.
165 * Throws an [ArgumentError] if [length] is negative. 171 * Throws an [ArgumentError] if [length] is negative.
166 * Throws an [IndexOutOfRangeException] if [start] is negative or if 172 * Throws an [IndexOutOfRangeException] if [start] is negative or if
167 * [start] is greater than the length of the list. 173 * [start] is greater than the length of the list.
168 */ 174 */
169 void insertRange(int start, int length, [E initialValue]); 175 void insertRange(int start, int length, [E initialValue]);
170 } 176 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698