com.github.asteraether.tomlib.util.CollectionUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of TomLib Show documentation
Show all versions of TomLib Show documentation
A simple collection of usefull things in java.
The newest version!
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.github.asteraether.tomlib.util;
import java.util.Arrays;
import java.util.List;
/**
*
* @author neumann6
*/
public class CollectionUtil {
public static List asList(int[] arr) {
Integer[] arrObj = new Integer[arr.length];
for (int i = 0; i < arr.length; i++) {
arrObj[i] = arr[i];
}
return Arrays.asList(arrObj);
}
}