List of utility methods to do Collection to Array Convert
String[] | toArray(Collection to Array return collection.toArray(new String[collection.size()]); |
long[] | toPrimitiveLongArray(Collection to Primitive Long Array final int size = collection.size(); final long[] ret = new long[size]; int i = 0; for (Long value : collection) { ret[i++] = value; return ret; |