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

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

Issue 11419032: Switch libraries to using new tags. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tip of tree. Changed library names to dart.x Created 8 years 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 | « sdk/lib/core/bool.dart ('k') | sdk/lib/core/comparable.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) 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 part of dart.core;
6
5 /** 7 /**
6 * The common interface of all collections. 8 * The common interface of all collections.
7 * 9 *
8 * The [Collection] class contains a skeleton implementation of 10 * The [Collection] class contains a skeleton implementation of
9 * an iterator based collection. 11 * an iterator based collection.
10 */ 12 */
11 abstract class Collection<E> extends Iterable<E> { 13 abstract class Collection<E> extends Iterable<E> {
12 /** 14 /**
13 * Returns a new collection with the elements [: f(e) :] 15 * Returns a new collection with the elements [: f(e) :]
14 * for each element [:e:] of this collection. 16 * for each element [:e:] of this collection.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 if (f(element)) return true; 92 if (f(element)) return true;
91 } 93 }
92 return false; 94 return false;
93 } 95 }
94 96
95 /** 97 /**
96 * Returns true if there is no element in this collection. 98 * Returns true if there is no element in this collection.
97 */ 99 */
98 bool get isEmpty => !iterator().hasNext; 100 bool get isEmpty => !iterator().hasNext;
99 } 101 }
OLDNEW
« no previous file with comments | « sdk/lib/core/bool.dart ('k') | sdk/lib/core/comparable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698