Copy the given Collection into a String array. The Collection must contain String elements only. @param collection the Collection to copy @return the String array ( null if the passed-in Collection was null )
(Collection<String> collection)
| 983 | * Collection was <code>null</code>) |
| 984 | */ |
| 985 | public static String[] toStringArray(Collection<String> collection) { |
| 986 | if (collection == null) { |
| 987 | return null; |
| 988 | } |
| 989 | return collection.toArray(new String[collection.size()]); |
| 990 | } |
| 991 | |
| 992 | /** |
| 993 | * Copy the given Enumeration into a String array. |
no test coverage detected