Java List Transform transform(final List l)

Here you can find the source of transform(final List l)

Description

transform

License

Open Source License

Declaration

public static int[] transform(final List<Integer> l) 

Method Source Code

//package com.java2s;
/**/*from ww  w  . j  ava 2  s.  c  o  m*/
 * Copyright? 2014-2016 LIST (Luxembourg Institute of Science and Technology), all right reserved.
 * Authorship : Olivier PARISOT, Yoanne DIDRY
 * Licensed under GNU General Public License version 3
 */

import java.util.*;

public class Main {
    public static int[] transform(final List<Integer> l) {
        final int[] array = new int[l.size()];
        for (int i = 0; i < l.size(); i++)
            array[i] = l.get(i).intValue();
        return array;
    }
}

Related

  1. stringToList(final String stringToTransform)
  2. transform(List> values)
  3. transformCollectionTOList(Collection collection)
  4. transformContinuouslyVariablesByThreshold(List> data, int index, int threshold)
  5. transformIntoAList(String... elements)