com.vaadin.addon.jpacontainer.util
Class CollectionUtil

java.lang.Object
  extended by com.vaadin.addon.jpacontainer.util.CollectionUtil

public class CollectionUtil
extends Object


Constructor Summary
CollectionUtil()
           
 
Method Summary
static
<T> T[]
toArray(Class<T> type, Collection<T> collection)
          Converts a typed Collection to a typed array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtil

public CollectionUtil()
Method Detail

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.


Copyright © 2013 Vaadin Ltd. All rights reserved.