Java Primitive Type Create toPrimitive(Integer[] IntArray)

Here you can find the source of toPrimitive(Integer[] IntArray)

Description

to Primitive

License

Open Source License

Declaration

public static int[] toPrimitive(Integer[] IntArray) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 *                       I N T E L   C O R P O R A T I O N
 * //  w w w .  j av  a2 s. co m
 *  Functional Group: Fabric Viewer Application
 * 
 *  File Name: Util.java
 * 
 *  Archive Source: $Source$
 * 
 *  Archive Log: $Log$
 *  Archive Log: Revision 1.18  2015/08/18 14:28:35  jijunwan
 *  Archive Log: PR 130033 - Fix critical issues found by Klocwork or FindBugs
 *  Archive Log: - DateFormat is not thread safe. Changed to create new DateFormat to avoid sharing it among different threads
 *  Archive Log:
 *  Archive Log: Revision 1.17  2015/08/17 18:54:12  jijunwan
 *  Archive Log: PR 129983 - Need to change file header's copyright text to BSD license txt
 *  Archive Log: - changed frontend files' headers
 *  Archive Log:
 *  Archive Log: Revision 1.16  2015/07/28 18:29:10  fisherma
 *  Archive Log: PR 129219 - Admin page login dialog improvement
 *  Archive Log:
 *  Archive Log: Revision 1.15  2015/07/14 17:00:59  jijunwan
 *  Archive Log: PR 129541 - Should forbid save or deploy when there is invalid edit on management panel
 *  Archive Log: - removed unnecessary argument for warning message display
 *  Archive Log:
 *  Archive Log: Revision 1.14  2015/06/10 19:58:58  jijunwan
 *  Archive Log: PR 129120 - Some old files have no proper file header. They cannot record change logs.
 *  Archive Log: - wrote a tool to check and insert file header
 *  Archive Log: - applied on backend files
 *  Archive Log:
 * 
 *  Overview:
 * 
 *  @author: jijunwan
 * 
 ******************************************************************************/

public class Main {
    public static int[] toPrimitive(Integer[] IntArray) {
        int[] intArray = new int[IntArray.length];
        for (int i = 0; i < IntArray.length; i++) {
            intArray[i] = IntArray[i].intValue();
        }
        return intArray;
    }
}

Related

  1. toPrimitive(final Boolean b)
  2. toPrimitive(final Character value, final char defaultValue)
  3. toPrimitive(final Double[] arr)
  4. toPrimitive(Float[] floats)
  5. toPrimitive(Integer[] array)
  6. toPrimitive(Integer[] ints)
  7. toPrimitive(Integer[] irri)
  8. toPrimitive(Long[] array)
  9. toPrimitive(Long[] array)