| 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 dart.core; |  | 
| 6 |  | 
| 7 /** | 5 /** | 
| 8  * The common interface of all collections. | 6  * The common interface of all collections. | 
| 9  * | 7  * | 
| 10  * The [Collection] class contains a skeleton implementation of | 8  * The [Collection] class contains a skeleton implementation of | 
| 11  * an iterator based collection. | 9  * an iterator based collection. | 
| 12  */ | 10  */ | 
| 13 abstract class Collection<E> extends Iterable<E> { | 11 abstract class Collection<E> extends Iterable<E> { | 
| 14   /** | 12   /** | 
| 15    * Returns a new collection with the elements [: f(e) :] | 13    * Returns a new collection with the elements [: f(e) :] | 
| 16    * for each element [:e:] of this collection. | 14    * for each element [:e:] of this collection. | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 92       if (f(element)) return true; | 90       if (f(element)) return true; | 
| 93     } | 91     } | 
| 94     return false; | 92     return false; | 
| 95   } | 93   } | 
| 96 | 94 | 
| 97   /** | 95   /** | 
| 98    * Returns true if there is no element in this collection. | 96    * Returns true if there is no element in this collection. | 
| 99    */ | 97    */ | 
| 100   bool get isEmpty => !iterator().hasNext; | 98   bool get isEmpty => !iterator().hasNext; | 
| 101 } | 99 } | 
| OLD | NEW | 
|---|