| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.utilities.collection; | 8 library engine.utilities.collection; |
| 9 | 9 |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 ]. | 116 ]. |
| 117 */ | 117 */ |
| 118 class ListUtilities { | 118 class ListUtilities { |
| 119 /** | 119 /** |
| 120 * Add all of the elements in the given array to the given list. | 120 * Add all of the elements in the given array to the given list. |
| 121 * | 121 * |
| 122 * @param list the list to which the elements are to be added | 122 * @param list the list to which the elements are to be added |
| 123 * @param elements the elements to be added to the list | 123 * @param elements the elements to be added to the list |
| 124 */ | 124 */ |
| 125 static void addAll(List list, List<Object> elements) { | 125 static void addAll(List list, List<Object> elements) { |
| 126 for (Object element in elements) { | 126 int count = elements.length; |
| 127 list.add(element); | 127 for (int i = 0; i < count; i++) { |
| 128 list.add(elements[i]); |
| 128 } | 129 } |
| 129 } | 130 } |
| 130 } | 131 } |
| OLD | NEW |