@ GwtIncompatible // Array.newInstance(Class, int) public static < T > T [ ] toArray ( Iterable < ? extends T > iterable , Class < T > type ) { return toArray ( iterable , ObjectArrays . newArray ( type , 0 ) ) ; }
Copies an iterable s elements into an array .