Returns an array containing all of the elements from this fluent iterable in iteration order. Stream equivalent: if an object array is acceptable, use stream.toArray(); if type is a class literal such as MyType.class, use {@code stream.toArray(MyType[]::new
(Class<E> type)
| 801 | */ |
| 802 | |
| 803 | @GwtIncompatible // Array.newArray(Class, int) |
| 804 | public final E[] toArray(Class<E> type) { |
| 805 | return Iterables.toArray(iterable, type); |
| 806 | } |
| 807 | |
| 808 | /** |
| 809 | * Copies all the elements from this fluent iterable to {@code collection}. This is equivalent to |