Java List to Primitive Array toPrimitiveLongArray(List l)

Here you can find the source of toPrimitiveLongArray(List l)

Description

to Primitive Long Array

License

Apache License

Declaration

public static long[] toPrimitiveLongArray(List<Long> l) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    public static long[] toPrimitiveLongArray(List<Long> l) {
        long[] arr = new long[l.size()];
        for (int i = 0; i < l.size(); i++) {
            arr[i] = l.get(i);/*from   w  ww.  jav a2 s. c om*/
        }
        return arr;
    }
}

Related

  1. toPrimitiveDouble(List values)
  2. toPrimitiveIntArray(List temp)
  3. toPrimitiveIntArray(List values)
  4. toPrimitiveIntegerArray(List listOfInt)
  5. toPrimitiveLongArray(List items)
  6. ToPrimitiveLongArray(List list)
  7. toPrimitives(List oInt)