OLD | NEW |
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 "core.dart"; | 5 part of dart.core; |
6 | 6 |
7 /** | 7 /** |
8 * A collection of values, or "elements", that can be accessed sequentially. | 8 * A collection of values, or "elements", that can be accessed sequentially. |
9 * | 9 * |
10 * The elements of the iterable are accessed by getting an [Iterator] | 10 * The elements of the iterable are accessed by getting an [Iterator] |
11 * using the [iterator] getter, and using it to step through the values. | 11 * using the [iterator] getter, and using it to step through the values. |
12 * Stepping with the iterator is done by calling [Iterator.moveNext], | 12 * Stepping with the iterator is done by calling [Iterator.moveNext], |
13 * and if the call returns `true`, | 13 * and if the call returns `true`, |
14 * the iterator has now moved to the next element, | 14 * the iterator has now moved to the next element, |
15 * which is then available as [Iterator.current]. | 15 * which is then available as [Iterator.current]. |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 */ | 645 */ |
646 abstract class BidirectionalIterator<E> implements Iterator<E> { | 646 abstract class BidirectionalIterator<E> implements Iterator<E> { |
647 /** | 647 /** |
648 * Move back to the previous element. | 648 * Move back to the previous element. |
649 * | 649 * |
650 * Returns true and updates [current] if successful. Returns false | 650 * Returns true and updates [current] if successful. Returns false |
651 * and sets [current] to null if there is no previous element. | 651 * and sets [current] to null if there is no previous element. |
652 */ | 652 */ |
653 bool movePrevious(); | 653 bool movePrevious(); |
654 } | 654 } |
OLD | NEW |