Class CollectionUtil

java.lang.Object
com.vaadin.featurepack.data.jpacontainer.util.CollectionUtil

public class CollectionUtil extends Object
  • Constructor Details

    • CollectionUtil

      public CollectionUtil()
  • Method Details

    • toArray

      public static <T> T[] toArray(Class<T> type, Collection<T> collection)
      Converts a typed Collection to a typed array.
      Parameters:
      type - the type class
      collection - the collection to convert to an array.
      Returns:
      the array.