code: @NullSafe
    public static <T> T[] asArray(Enumeration<T> enumeration, Class<T> componentType) {
      return asArray(CollectionUtils.asIterable(enumeration), componentType);
    }
docs: Converts the {@link Enumeration} into an array.
  
  @param <T> Class type of the elements in the {@link Enumeration}.
  @param enumeration {@link Enumeration} to convert into an array.
  @param componentType {@link Class} type of the elements in the {@link Enumeration}.
  @return an array containing all the elements from the {@link Enumeration}.  Returns an empty array
  if the {@link Enumeration} is null or empty.
  @see java.util.Enumeration
  @see #asArray(Iterable, Class)