List of utility methods to do List to Array Convert
byte[] | toByteArray(final List to Byte Array final byte[] out = new byte[pItems.size()]; for (int i = out.length - 1; i >= 0; i--) { out[i] = pItems.get(i); return out; |
char[] | toCharArray(final List to Char Array final char[] out = new char[pItems.size()]; for (int i = out.length - 1; i >= 0; i--) { out[i] = pItems.get(i); return out; |
double[] | toDoubleArray(final List to Double Array final double[] out = new double[pItems.size()]; for (int i = out.length - 1; i >= 0; i--) { out[i] = pItems.get(i); return out; |
float[] | toFloatArray(final List to Float Array final float[] out = new float[pItems.size()]; for (int i = out.length - 1; i >= 0; i--) { out[i] = pItems.get(i); return out; |
int[] | toIntArray(final List to Int Array final int[] out = new int[pItems.size()]; for (int i = out.length - 1; i >= 0; i--) { out[i] = pItems.get(i); return out; |
long[] | toLongArray(final List to Long Array final long[] out = new long[pItems.size()]; for (int i = out.length - 1; i >= 0; i--) { out[i] = pItems.get(i); return out; |
short[] | toShortArray(final List to Short Array final short[] out = new short[pItems.size()]; for (int i = out.length - 1; i >= 0; i--) { out[i] = pItems.get(i); return out; |