Android List to Array Convert toLongArray(final List pItems)

Here you can find the source of toLongArray(final List pItems)

Description

to Long Array

Declaration

public static final long[] toLongArray(final List<Long> pItems) 

Method Source Code

//package com.java2s;
import java.util.List;

public class Main {
    public static final long[] toLongArray(final List<Long> pItems) {
        final long[] out = new long[pItems.size()];
        for (int i = out.length - 1; i >= 0; i--) {
            out[i] = pItems.get(i);//from  w  w w  . ja va2 s . c  om
        }
        return out;
    }
}

Related

  1. toByteArray(final List pItems)
  2. toCharArray(final List pItems)
  3. toDoubleArray(final List pItems)
  4. toFloatArray(final List pItems)
  5. toIntArray(final List pItems)
  6. toShortArray(final List pItems)