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

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

Issue 11230011: Make hasNext a getter instead of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused variable. Created 8 years, 1 month 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/collection.dart ('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 * The [Iterator] class provides methods to iterate over an object. It 6 * The [Iterator] class provides methods to iterate over an object. It
7 * is transparently used by the for-in construct to test for the end 7 * is transparently used by the for-in construct to test for the end
8 * of the iteration, and to get the elements. 8 * of the iteration, and to get the elements.
9 * 9 *
10 * If the object iterated over is changed during the iteration, the 10 * If the object iterated over is changed during the iteration, the
11 * behavior is unspecified. 11 * behavior is unspecified.
12 */ 12 */
13 abstract class Iterator<E> { 13 abstract class Iterator<E> {
14 /** 14 /**
15 * Gets the next element in the iteration. Throws a 15 * Gets the next element in the iteration. Throws a
16 * [NoMoreElementsException] if no element is left. 16 * [NoMoreElementsException] if no element is left.
17 */ 17 */
18 E next(); 18 E next();
19 19
20 /** 20 /**
21 * Returns whether the [Iterator] has elements left. 21 * Returns whether the [Iterator] has elements left.
22 */ 22 */
23 bool hasNext(); 23 bool hasNext;
24 } 24 }
OLDNEW
« no previous file with comments | « lib/core/collection.dart ('k') | lib/core/sequences.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698