List of utility methods to do List to Primitive Array
long[] | toPrimitiveLongArray(List to Primitive Long Array long[] arr = new long[l.size()]; for (int i = 0; i < l.size(); i++) { arr[i] = l.get(i); return arr; |
long[] | ToPrimitiveLongArray(List To Primitive Long Array Iterator<Long> iterator = list.iterator(); long[] array = new long[list.size()]; for (int i = 0; i < array.length; i++) { array[i] = iterator.next(); return array; |
int[] | toPrimitives(List to Primitives if (oInt == null) { return null; return toPrimitives(oInt.toArray(new Integer[0])); |