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

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

Issue 11169004: Add "contains" method to Collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed last illegal-access 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 | « lib/core/corelib_sources.gypi ('k') | lib/core/sequences.dart » ('j') | 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 /** 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>, Sequence<E>
10 10 default ListImplementation<E> {
11 /** 11 /**
12 * Creates a list of the given [length]. 12 * Creates a list of the given [length].
13 * 13 *
14 * If no [length] argument is supplied an extendable list of 14 * If no [length] argument is supplied an extendable list of
15 * length 0 is created. 15 * length 0 is created.
16 * 16 *
17 * If a [length] argument is supplied, a fixed size list of that 17 * If a [length] argument is supplied, a fixed size list of that
18 * length is created. 18 * length is created.
19 */ 19 */
20 List([int length]); 20 List([int length]);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 * not extendable. 167 * not extendable.
168 * If [length] is 0, this method does not do anything. 168 * If [length] is 0, this method does not do anything.
169 * 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
170 * range at the end of the list. 170 * range at the end of the list.
171 * Throws an [ArgumentError] if [length] is negative. 171 * Throws an [ArgumentError] if [length] is negative.
172 * Throws an [IndexOutOfRangeException] if [start] is negative or if 172 * Throws an [IndexOutOfRangeException] if [start] is negative or if
173 * [start] is greater than the length of the list. 173 * [start] is greater than the length of the list.
174 */ 174 */
175 void insertRange(int start, int length, [E initialValue]); 175 void insertRange(int start, int length, [E initialValue]);
176 } 176 }
OLDNEW
« no previous file with comments | « lib/core/corelib_sources.gypi ('k') | lib/core/sequences.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698