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

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

Issue 23190016: editing doc comments for List class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merging with master & final tweaks Created 7 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 | 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) 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 * An indexable collection of objects with a length.
9 * 9 *
10 * A `List` implementation can choose not to support all methods 10 * Subclasses of this class implement different kinds of lists.
11 * of the `List` interface. 11 * The most common kinds of lists are:
12 * 12 *
13 * The most common list types are: 13 * * Fixed-length list.
14 * * Fixed length list. It is an error to use operations that can change 14 * An error occurs when attempting to use operations
15 * the list's length. 15 * that can change the length of the list.
16 * * Growable list. Full implementation of the interface.
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.
19 * If an unmodifable list is backed by another modifiable data structure,
20 * the values read from it may still change over time.
21 * 16 *
22 * Example: 17 * * Growable list. Full implementation of the API defined in this class.
18 *
19 * The following code illustrates that some List implementations support
20 * only a subset of the API.
23 * 21 *
24 * var fixedLengthList = new List(5); 22 * var fixedLengthList = new List(5);
25 * fixedLengthList.length = 0; // throws. 23 * fixedLengthList.length = 0; // Error.
26 * fixedLengthList.add(499); // throws 24 * fixedLengthList.add(499); // Error.
27 * fixedLengthList[0] = 87; 25 * fixedLengthList[0] = 87;
26 *
28 * var growableList = [1, 2]; 27 * var growableList = [1, 2];
29 * growableList.length = 0; 28 * growableList.length = 0;
30 * growableList.add(499); 29 * growableList.add(499);
31 * growableList[0] = 87; 30 * growableList[0] = 87;
32 * var unmodifiableList = const [1, 2];
33 * unmodifiableList.length = 0; // throws.
34 * unmodifiableList.add(499); // throws
35 * unmodifiableList[0] = 87; // throws.
36 * 31 *
37 * Lists are [Iterable]. 32 * Lists are [Iterable].
38 * List iteration iterates over values in index order. 33 * Iteration occurs over values in index order.
39 * Changing the values will not affect iteration, 34 * Changing the values does not affect iteration,
40 * but changing the valid indices - 35 * but changing the valid indices—that is,
floitsch 2013/09/23 12:34:46 not markdown.
41 * that is, changing the list's length - 36 * changing the list's length—between
floitsch 2013/09/23 12:34:46 ditto.
42 * between iteration steps 37 * iteration steps
43 * will cause a [ConcurrentModificationError]. 38 * causes a [ConcurrentModificationError].
44 * This means that only growable lists can throw [ConcurrentModificationError]. 39 * This means that only growable lists can throw ConcurrentModificationError.
45 * If the length changes temporarily 40 * If the length changes temporarily
46 * and is restored before continuing the iteration, 41 * and is restored before continuing the iteration,
47 * the iterator will not detect it. 42 * the iterator does not detect it.
48 */ 43 */
49 abstract class List<E> implements Iterable<E> { 44 abstract class List<E> implements Iterable<E> {
50 /** 45 /**
51 * Creates a list of the given [length]. 46 * Creates a list of the given _length_.
52 * 47 *
53 * The list is a fixed-length list if [length] is provided, and an empty 48 * The created list is fixed-length if _length_ is provided.
floitsch 2013/09/23 12:34:46 _length_ is not the same as [length]. Please keep
Kathy Walrath 2013/09/24 00:47:42 Could we rethink this? This case is especially ba
floitsch 2013/09/24 10:37:14 That's a bug in dartdoc.
Kathy Walrath 2013/09/24 17:12:41 It does seem like dartdoc should hew to the closes
floitsch 2013/09/24 17:21:48 Not sure. But the argument is clearly in scope (ot
54 * growable list if [length] is omitted. 49 * The list has length 0 and is growable if _length_ is omitted.
55 * 50 *
56 * It is an error if [length] is not a non-negative integer. 51 * An error occurs if _length_ is negative.
floitsch 2013/09/23 12:34:46 This has not the same semantics. We are saying tha
Kathy Walrath 2013/09/24 00:47:42 We should definitely be correct about this, but op
floitsch 2013/09/24 10:37:14 I prefer that one. The problem is, that it becomes
57 */ 52 */
58 external factory List([int length]); 53 external factory List([int length]);
59 54
60 /** 55 /**
61 * Creates a fixed-length list of the given [length] where each entry 56 * Creates a fixed-length list of the given _length_
62 * contains [fill]. 57 * and initializes the value at each position with [fill].
63 */ 58 */
64 external factory List.filled(int length, E fill); 59 external factory List.filled(int length, E fill);
65 60
66 /** 61 /**
67 * Creates an list with the elements of [other]. 62 * Creates a list and initializes it using the contents of [other].
68 * 63 *
69 * The order in the list will be 64 * The [Iterator] of [other] provides the order of the objects.
70 * the order provided by the iterator of [other].
71 * 65 *
72 * The returned list is growable if [growable] is true, otherwise it's 66 * This constructor returns a growable list if [growable] is true;
73 * a fixed length list. 67 * otherwise, it returns a fixed-length list.
74 */ 68 */
75 factory List.from(Iterable other, { bool growable: true }) { 69 factory List.from(Iterable other, { bool growable: true }) {
76 List<E> list = new List<E>(); 70 List<E> list = new List<E>();
77 for (E e in other) { 71 for (E e in other) {
78 list.add(e); 72 list.add(e);
79 } 73 }
80 if (growable) return list; 74 if (growable) return list;
81 int length = list.length; 75 int length = list.length;
82 List<E> fixedList = new List<E>(length); 76 List<E> fixedList = new List<E>(length);
83 for (int i = 0; i < length; i++) { 77 for (int i = 0; i < length; i++) {
84 fixedList[i] = list[i]; 78 fixedList[i] = list[i];
85 } 79 }
86 return fixedList; 80 return fixedList;
87 } 81 }
88 82
89 /** 83 /**
90 * Generate a `List` of values. 84 * Generates a list of values.
91 * 85 *
92 * Creates a list with [length] positions 86 * Creates a list with _length_ positions
93 * and fills them by values created by calling [generator] 87 * and fills it with values created by calling [generator]
94 * for each index in the range `0` .. `[length] - 1` 88 * for each index in the range `0` .. `length - 1`
95 * in increasing order. 89 * in increasing order.
96 * 90 *
97 * The created list's length is fixed unless [growable] is true. 91 * The created list is fixed-length unless [growable] is true.
98 */ 92 */
99 factory List.generate(int length, E generator(int index), 93 factory List.generate(int length, E generator(int index),
100 { bool growable: true }) { 94 { bool growable: true }) {
101 List<E> result; 95 List<E> result;
102 if (growable) { 96 if (growable) {
103 result = <E>[]..length = length; 97 result = <E>[]..length = length;
104 } else { 98 } else {
105 result = new List<E>(length); 99 result = new List<E>(length);
106 } 100 }
107 for (int i = 0; i < length; i++) { 101 for (int i = 0; i < length; i++) {
108 result[i] = generator(i); 102 result[i] = generator(i);
109 } 103 }
110 return result; 104 return result;
111 } 105 }
112 106
113 /** 107 /**
114 * Returns the element at the given [index] in the list or throws 108 * Returns the object at the given [index] in the list
115 * an [RangeError] if [index] is out of bounds. 109 * or throws a [RangeError] if [index] is out of bounds.
116 */ 110 */
117 E operator [](int index); 111 E operator [](int index);
118 112
119 /** 113 /**
120 * Sets the entry at the given [index] in the list to [value]. 114 * Sets the value at the given [index] in the list to [value]
121 * 115 * or throws a [RangeError] if [index] is out of bounds.
122 * Throws an [RangeError] if [index] is out of bounds.
123 */ 116 */
124 void operator []=(int index, E value); 117 void operator []=(int index, E value);
125 118
126 /** 119 /**
127 * Returns the number of elements in the list. 120 * Returns the number of objects in this list.
128 * 121 *
129 * The valid indices for a list are 0 through `length - 1`. 122 * The valid indices for a list are `0` through `length - 1`.
130 */ 123 */
131 int get length; 124 int get length;
132 125
133 /** 126 /**
134 * Changes the length of the list. If [newLength] is greater than 127 * Changes the length of this list.
128 *
129 * If [newLength] is greater than
135 * the current [length], entries are initialized to [:null:]. 130 * the current [length], entries are initialized to [:null:].
136 * 131 *
137 * Throws an [UnsupportedError] if the list is not extendable. 132 * Throws an [UnsupportedError] if the list is fixed-length.
138 */ 133 */
139 void set length(int newLength); 134 void set length(int newLength);
140 135
141 /** 136 /**
142 * Adds [value] at the end of the list, extending the length by 137 * Adds [value] to the end of this list,
143 * one. 138 * extending the length by one.
144 * 139 *
145 * Throws an [UnsupportedError] if the list is not extendable. 140 * Throws an [UnsupportedError] if the list is fixed-length.
146 */ 141 */
147 void add(E value); 142 void add(E value);
148 143
149 /** 144 /**
150 * Appends all elements of the [iterable] to the end of this list. 145 * Appends all objects of [iterable] to the end of this list.
151 * 146 *
152 * Extends the length of the list by the number of elements in [iterable]. 147 * Extends the length of the list by the number of objects in [iterable].
153 * Throws an [UnsupportedError] if this list is not extensible. 148 * Throws an [UnsupportedError] if this list is fixed-length.
154 */ 149 */
155 void addAll(Iterable<E> iterable); 150 void addAll(Iterable<E> iterable);
156 151
157 /** 152 /**
158 * Returns an [Iterable] of the elements of this [List] in reverse order. 153 * Returns an [Iterable] of the objects in this list in reverse order.
159 */ 154 */
160 Iterable<E> get reversed; 155 Iterable<E> get reversed;
161 156
162 /** 157 /**
163 * Sorts the list according to the order specified by the [compare] function. 158 * Sorts this list according to the order specified by the [compare] function.
164 * 159 *
165 * The [compare] function must act as a [Comparator]. 160 * The [compare] function must act as a [Comparator].
166 * 161 *
167 * The default [List] implementations use [Comparable.compare] if 162 * The default List implementations use [Comparable.compare] if
168 * [compare] is omitted. 163 * [compare] is omitted.
169 */ 164 */
170 void sort([int compare(E a, E b)]); 165 void sort([int compare(E a, E b)]);
171 166
172 /** 167 /**
173 * Returns the first index of [element] in the list. 168 * Returns the first index of [element] in this list.
174 * 169 *
175 * Searches the list from index [start] to the length of the list. 170 * Searches the list from index [start] to the length of the list.
176 * The first time an element [:e:] is encountered so that [:e == element:], 171 * The first time an object [:o:] is encountered so that [:o == element:],
177 * the index of [:e:] is returned. 172 * the index of [:o:] is returned.
178 * Returns -1 if [element] is not found. 173 * Returns -1 if [element] is not found.
179 */ 174 */
180 int indexOf(E element, [int start = 0]); 175 int indexOf(E element, [int start = 0]);
181 176
182 /** 177 /**
183 * Returns the last index of [element] in the list. 178 * Returns the last index of [element] in this list.
184 * 179 *
185 * Searches the list backwards from index [start] (inclusive) to 0. 180 * Searches the list backwards from index [start] to 0.
186 * 181 *
187 * The first time an element [:e:] is encountered so that [:e == element:], 182 * The first time an object [:o:] is encountered so that [:o == element:],
188 * the index of [:e:] is returned. 183 * the index of [:o:] is returned.
189 * 184 *
190 * If start is not provided, it defaults to [:this.length - 1:]. 185 * If [start] is not provided, it defaults to [:this.length - 1:].
191 * 186 *
192 * Returns -1 if [element] is not found. 187 * Returns -1 if [element] is not found.
193 */ 188 */
194 int lastIndexOf(E element, [int start]); 189 int lastIndexOf(E element, [int start]);
195 190
196 /** 191 /**
197 * Removes all elements in the list. 192 * Removes all objects from this list;
198 * 193 * the length of the list becomes zero.
199 * The length of the list becomes zero. 194 *
200 * 195 * Throws an [UnsupportedError], and retains all objects, if this
201 * Throws an [UnsupportedError], and retains all elements, if the 196 * is a fixed-length list.
202 * length of the list cannot be changed.
203 */ 197 */
204 void clear(); 198 void clear();
205 199
206 /** 200 /**
207 * Inserts the element at position [index] in the list. 201 * Inserts the object at position [index] in this list.
208 * 202 *
209 * This increases the length of the list by one and shifts all elements 203 * This increases the length of the list by one and shifts all objects
210 * at or after the index towards the end of the list. 204 * at or after the index towards the end of the list.
211 * 205 *
212 * It is an error if the [index] does not point inside the list or at the 206 * An error occurs if the [index] is less than 0 or greater than length.
213 * position after the last element. 207 * An [UnsupportedError] occurs if the list is fixed-length.
214 */ 208 */
215 void insert(int index, E element); 209 void insert(int index, E element);
216 210
217 /** 211 /**
218 * Inserts all elements of [iterable] at position [index] in the list. 212 * Inserts all objects of [iterable] at position [index] in this list.
219 * 213 *
220 * This increases the length of the list by the length of [iterable] and 214 * This increases the length of the list by the length of [iterable] and
221 * shifts all later elements towards the end of the list. 215 * shifts all later objects towards the end of the list.
222 * 216 *
223 * It is an error if the [index] does not point inside the list or at the 217 * An error occurs if the [index] is less than 0 or greater than length.
224 * position after the last element. 218 * An [UnsupportedError] occurs if the list is fixed-length.
225 */ 219 */
226 void insertAll(int index, Iterable<E> iterable); 220 void insertAll(int index, Iterable<E> iterable);
227 221
228 /** 222 /**
229 * Overwrites elements of `this` with the elemenst of [iterable] starting 223 * Overwrites objects of `this` with the objects of [iterable], starting
230 * at position [index] in the list. 224 * at position [index] in this list.
231 * 225 *
232 * This operation does not increase the length of `this`. 226 * This operation does not increase the length of `this`.
233 * 227 *
234 * It is an error if the [index] does not point inside the list or at the 228 * An error occurs if the [index] is less than 0 or greater than length.
235 * position after the last element. 229 * An error occurs if the [iterable] is longer than [length] - [index].
236 *
237 * It is an error if the [iterable] is longer than [length] - [index].
238 */ 230 */
239 void setAll(int index, Iterable<E> iterable); 231 void setAll(int index, Iterable<E> iterable);
240 232
241 /** 233 /**
242 * Removes [value] from the list. Returns true if [value] was 234 * Removes [value] from this list.
243 * in the list. Returns false otherwise. The method has no effect 235 *
244 * if [value] value was not in the list. 236 * Returns true if [value] was in the list.
237 * Returns false otherwise.
238 * The method has no effect if [value] was not in the list.
239 *
240 * An [UnsupportedError] occurs if the list is fixed-length.
245 */ 241 */
246 bool remove(Object value); 242 bool remove(Object value);
247 243
248 /** 244 /**
249 * Removes the element at position [index] from the list. 245 * Removes the object at position [index] from this list.
250 * 246 *
251 * This reduces the length of `this` by one and moves all later elements 247 * This method reduces the length of `this` by one and moves all later objects
252 * down by one position. 248 * down by one position.
253 * 249 *
254 * Returns the removed element. 250 * Returns the removed object.
255 * 251 *
256 * Throws an [ArgumentError] if [index] is not an [int]. 252 * * Throws an [ArgumentError] if [index] is not an [int].
257 * 253 * * Throws a [RangeError] if the [index] is out of range for this list.
258 * Throws an [RangeError] if the [index] does not point inside 254 * * Throws an [UnsupportedError], and doesn't remove the object,
259 * the list. 255 * if this is a fixed-length list.
260 *
261 * Throws an [UnsupportedError], and doesn't remove the element,
262 * if the length of `this` cannot be changed.
263 */ 256 */
264 E removeAt(int index); 257 E removeAt(int index);
265 258
266 /** 259 /**
267 * Pops and returns the last element of the list. 260 * Pops and returns the last object in this list.
268 * Throws a [UnsupportedError] if the length of the 261 *
269 * list cannot be changed. 262 * Throws an [UnsupportedError] if this is a fixed-length list.
270 */ 263 */
271 E removeLast(); 264 E removeLast();
272 265
273 /** 266 /**
274 * Removes all elements of this list that satisfy [test]. 267 * Removes all objects from this list that satisfy [test].
275 * 268 *
276 * An elements [:e:] satisfies [test] if [:test(e):] is true. 269 * An object [:o:] satisfies [test] if [:test(o):] is true.
270 *
271 * Throws an [UnsupportedError] if this is a fixed-length list.
277 */ 272 */
278 void removeWhere(bool test(E element)); 273 void removeWhere(bool test(E element));
279 274
280 /** 275 /**
281 * Removes all elements of this list that fail to satisfy [test]. 276 * Removes all objects from this list that fail to satisfy [test].
282 * 277 *
283 * An elements [:e:] satisfies [test] if [:test(e):] is true. 278 * An object [:o:] satisfies [test] if [:test(o):] is true.
279 *
280 * Throws an [UnsupportedError] if this is a fixed-length list.
284 */ 281 */
285 void retainWhere(bool test(E element)); 282 void retainWhere(bool test(E element));
286 283
287 /** 284 /**
288 * Returns a new list containing the elements from [start] to [end]. 285 * Returns a new list containing the objects
289 * 286 * from [start] inclusive to [end] exclusive.
290 * The result contains elements of this list with indices greater than or
291 * equal to [start] and less than [end].
292 * 287 *
293 * If [end] is omitted, the [length] of `this` is used. 288 * If [end] is omitted, the [length] of `this` is used.
294 * 289 *
295 * It is an error if [start] is outside the range `0` .. `[length]` or if 290 * An error occurs if [start] is outside the range `0` .. `length` or if
296 * [end] is outside the range `[start]` .. `[length]`. 291 * [end] is outside the range `start` .. `length`.
297 */ 292 */
298 List<E> sublist(int start, [int end]); 293 List<E> sublist(int start, [int end]);
299 294
300 /** 295 /**
301 * Returns an [Iterable] that iterates over the elements in the range 296 * Returns an [Iterable] that iterates over the objects in the range
302 * [start] to [end] exclusive. The result of this function 297 * [start] inclusive to [end] exclusive.
303 * is backed by `this`. 298 *
304 * 299 * An error occurs if [end] is before [start].
305 * It is an error if [end] is before [start]. 300 *
306 * 301 * An error occurs if the [start] and [end] are not valid ranges at the time
307 * It is an error if the [start] and [end] are not valid ranges at the time 302 * of the call to this method. The returned [Iterable] behaves like
308 * of the call to this method. The returned [Iterable] behaves similar to 303 * `skip(start).take(end - start)`. That is, it does not throw exceptions
309 * `skip(start).take(end - start)`. That is, it will not throw exceptions
310 * if `this` changes size. 304 * if `this` changes size.
311 * 305 *
312 * Example: 306 * Example:
313 * 307 *
314 * var list = [1, 2, 3, 4, 5]; 308 * var list = [1, 2, 3, 4, 5];
315 * var range = list.getRange(1, 4); 309 * var range = list.getRange(1, 4);
316 * print(range.join(', ')); // => 2, 3, 4 310 * print(range.join(', ')); // => 2, 3, 4
317 * list.length = 3; 311 * list.length = 3;
318 * print(range.join(', ')); // => 2, 3 312 * print(range.join(', ')); // => 2, 3
319 */ 313 */
320 Iterable<E> getRange(int start, int end); 314 Iterable<E> getRange(int start, int end);
321 315
322 /** 316 /**
323 * Copies the elements of [iterable], skipping the [skipCount] first elements, 317 * Copies the objects of [iterable], skipping [skipCount] objects first,
324 * into the range [start] to [end] exclusive of `this`. 318 * into the range [start] inclusive to [end] exclusive of `this`.
325 * 319 *
326 * If [start] equals [end] and [start]..[end] represents a legal range, this 320 * If [start] equals [end] and [start]..[end] represents a legal range, this
327 * method has no effect. 321 * method has no effect.
328 * 322 *
329 * It is an error if [start]..[end] is not a valid range pointing into the 323 * An error occurs if [start]..[end] is not a valid range for `this`.
330 * `this`. 324 * An error occurs if the [iterable] does not have enough objects after
331 * 325 * skipping [skipCount] objects.
332 * It is an error if the [iterable] does not have enough elements after
333 * skipping [skipCount] elements.
334 * 326 *
335 * Example: 327 * Example:
336 * 328 *
337 * var list = [1, 2, 3, 4]; 329 * var list = [1, 2, 3, 4];
338 * var list2 = [5, 6, 7, 8, 9]; 330 * var list2 = [5, 6, 7, 8, 9];
339 * list.setRange(1, 3, list2, 3); 331 * list.setRange(1, 3, list2, 3);
340 * print(list); // => [1, 8, 9, 4] 332 * print(list); // => [1, 8, 9, 4]
341 */ 333 */
342 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]); 334 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]);
343 335
344 /** 336 /**
345 * Removes the elements in the range [start] to [end] exclusive. 337 * Removes the objects in the range [start] inclusive to [end] exclusive.
346 * 338 *
347 * It is an error if [start]..[end] is not a valid range pointing into the 339 * An error occurs if [start]..[end] is not a valid range for `this`.
348 * `this`. 340 * Throws an [UnsupportedError] if this is a fixed-length list.
349 */ 341 */
350 void removeRange(int start, int end); 342 void removeRange(int start, int end);
351 343
352 /** 344 /**
353 * Sets the elements in the range [start] to [end] exclusive to the given 345 * Sets the objects in the range [start] inclusive to [end] exclusive
354 * [fillValue]. 346 * to the given [fillValue].
355 * 347 *
356 * It is an error if [start]..[end] is not a valid range pointing into the 348 * An error occurs if [start]..[end] is not a valid range for `this`.
357 * `this`.
358 */ 349 */
359 void fillRange(int start, int end, [E fillValue]); 350 void fillRange(int start, int end, [E fillValue]);
360 351
361 /** 352 /**
362 * Removes the elements in the range [start] to [end] exclusive and replaces 353 * Removes the objects in the range [start] inclusive to [end] exclusive
363 * them with the contents of the [iterable]. 354 * and replaces them with the contents of the [iterable].
364 * 355 *
365 * It is an error if [start]..[end] is not a valid range pointing into the 356 * An error occurs if [start]..[end] is not a valid range for `this`.
366 * `this`.
367 * 357 *
368 * Example: 358 * Example:
369 * 359 *
370 * var list = [1, 2, 3, 4, 5]; 360 * var list = [1, 2, 3, 4, 5];
371 * list.replaceRange(1, 3, [6, 7, 8, 9]); 361 * list.replaceRange(1, 3, [6, 7, 8, 9]);
372 * print(list); // [1, 6, 7, 8, 9, 4, 5] 362 * print(list); // [1, 6, 7, 8, 9, 4, 5]
373 */ 363 */
374 void replaceRange(int start, int end, Iterable<E> iterable); 364 void replaceRange(int start, int end, Iterable<E> iterable);
375 365
376 /** 366 /**
377 * Returns an unmodifiable [Map] view of `this`. 367 * Returns an unmodifiable [Map] view of `this`.
378 * 368 *
379 * It has the indices of this list as keys, and the corresponding elements 369 * The map uses the indices of this list as keys and the corresponding objects
380 * as values. The [Map.keys] [Iterable] will iterate the indices of this list 370 * as values. The `Map.keys` [Iterable] iterates the indices of this list
381 * in numerical order. 371 * in numerical order.
382 */ 372 */
383 Map<int, E> asMap(); 373 Map<int, E> asMap();
384 } 374 }
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