Java List to Int List toIntegerArray(List arrayValues)

Here you can find the source of toIntegerArray(List arrayValues)

Description

to Integer Array

License

Open Source License

Declaration

public static int[] toIntegerArray(List<Integer> arrayValues) 

Method Source Code

//package com.java2s;
/**//  w  ww  . j a  va  2  s  . c om
 *  
 * Copyright (c) 2016 Fannie Mae, All rights reserved.
 * This program and the accompany materials are made available under
 * the terms of the Fannie Mae Open Source Licensing Project available 
 * at https://github.com/FannieMaeOpenSource/ezPie/wiki/License
 * 
 * ezPIE? is a registered trademark of Fannie Mae
 * 
 */

import java.util.List;

public class Main {
    public static int[] toIntegerArray(List<Integer> arrayValues) {
        int length = arrayValues.size();
        int[] result = new int[length];
        for (int i = 0; i < length; i++) {
            result[i] = (int) arrayValues.get(i);
        }
        return result;
    }
}

Related

  1. toIntArray(List list)
  2. toIntArray(List list)
  3. toIntArray(List values)
  4. toIntArray_impl(List i_list, int i_offset, int i_size)
  5. toIntegerArray(final List list)
  6. toIntegerArray(List values)
  7. toIntegerList(final E[] array)
  8. toIntegerList(int... array)
  9. toIntegerList(int[] array)