com.softicar.platform.common.container.array.ArrayUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.container.array;
import java.util.Collection;
public class ArrayUtils {
public static int[] convertToIntArray(Collection collection) {
int[] array = new int[collection.size()];
int i = 0;
for (Integer integer: collection) {
array[i] = integer;
++i;
}
return array;
}
}