(Iterable<?> elements, Object[] array)
| 222 | } |
| 223 | |
| 224 | @CanIgnoreReturnValue |
| 225 | private static Object[] fillArray(Iterable<?> elements, Object[] array) { |
| 226 | int i = 0; |
| 227 | for (Object element : elements) { |
| 228 | array[i++] = element; |
| 229 | } |
| 230 | return array; |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * Swaps {@code array[i]} with {@code array[j]}. |