spring-framework / org.springframework.util / CollectionUtils / toArray

toArray

open static fun <A : Any, E : A> toArray(enumeration: Enumeration<E>, array: Array<A>): Array<A>

Marshal the elements from the given enumeration into an array of the given type. Enumeration elements must be assignable to the type of the given array. The array returned will be a different instance than the array given.