Java Utililty Methods List to Int List

List of utility methods to do List to Int List

Description

The list of methods to do List to Int List are organized into topic(s).

Method

int[]toIntArray(List list)
to Int Array
int[] array = new int[list.size()];
for (int i = 0; i < list.size(); i++) {
    array[i] = list.get(i);
return array;
int[]toIntArray(List list)
Erstellt Integer-Array aus Liste
int[] ret = new int[list.size()];
int i = 0;
for (Integer e : list) {
    ret[i++] = e.intValue();
return ret;
int[]toIntArray(List list)
to Int Array
try {
    int[] ret = new int[list.size()];
    for (int i = 0; i < ret.length; i++) {
        ret[i] = list.get(i).intValue();
    return ret;
} catch (NullPointerException e) {
    return null;
...
int[]toIntArray(List list)
to Int Array
if (isNullOrEmpty(list)) {
    return null;
int[] ints = new int[list.size()];
for (int i = 0; i < ints.length; i++) {
    ints[i] = list.get(i);
return ints;
...
int[]toIntArray(List list)
to Int Array
int[] t = new int[list.size()];
for (int i = 0; i < t.length; i++)
    t[i] = list.get(i);
return t;
int[]toIntArray(List list)
This converts a list to it's primitive state.
int[] array = new int[list.size()];
for (int i = 0; i < list.size(); i++) {
    array[i] = list.get(i);
return array;
int[]toIntArray(List list)
Converts a List of Integer to an int[]
int[] res = new int[list.size()];
int index = 0;
Iterator iter = list.iterator();
while (iter.hasNext()) {
    Integer i = (Integer) iter.next();
    res[index++] = i.intValue();
return res;
...
int[]toIntArray(List values)
to Int Array
int[] is = new int[values.size()];
for (int i = 0; i < is.length; i++) {
    is[i] = Integer.parseInt(values.get(i));
return is;
int[]toIntArray_impl(List i_list, int i_offset, int i_size)
to Int Arraimpl
return toIntArray_impl(i_list, i_offset, i_size, new int[i_size]);
int[]toIntegerArray(final List list)
to Integer Array
int[] array = new int[list.size()];
for (int i = 0; i < list.size(); i++) {
    array[i] = list.get(i);
return array;