Java List Create CreateIntArrayFromIntegerList(List solidsList)

Here you can find the source of CreateIntArrayFromIntegerList(List solidsList)

Description

Builds int array from Integer List object

License

Open Source License

Parameter

Parameter Description
solidsList Integer list

Return

int array

Declaration

public static int[] CreateIntArrayFromIntegerList(List<Integer> solidsList) 

Method Source Code

//package com.java2s;
/*/*from   www.  j a v  a2 s.c  o m*/
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description: 
 *
 */

import java.util.List;

public class Main {
    /**
     * Builds int array from Integer List object
     * 
     * @param solidsList
     *            Integer list
     * @return int array
     */
    public static int[] CreateIntArrayFromIntegerList(List<Integer> solidsList) {
        int[] solidPts = new int[solidsList.size()];
        for (int j = 0; j < solidsList.size(); j++) {
            solidPts[j] = solidsList.get(j);
        }
        return solidPts;
    }
}

Related

  1. createHTMLList(String list, String link, boolean APPEND, String title)
  2. createIfNull(List list)
  3. createIndicesOrderedList(final Collection order, final Collection values)
  4. createInString(List keys)
  5. createIntArray(List coll)
  6. createIntegerList(int[] array)
  7. createIntegerQueryString(List values)
  8. CreateIntegerSequenceList(int startNumber, int endNumber)
  9. createIntegerSetFromIntegerList(List integerList)