Java List Create createList(T... params)

Here you can find the source of createList(T... params)

Description

create List

License

Open Source License

Declaration

public static <T> ArrayList<T> createList(T... params) 

Method Source Code

//package com.java2s;
//  License: https://servicestack.net/bsd-license.txt

import java.util.ArrayList;
import java.util.Arrays;

public class Main {
    public static <T> ArrayList<T> createList(T... params) {
        ArrayList<T> to = new ArrayList<T>();
        to.addAll(Arrays.asList(params));
        return to;
    }/*from  w w  w .j av a2s .  c  o m*/
}

Related

  1. createList(T... array)
  2. createList(T... element)
  3. createList(T... items)
  4. createList(T... items)
  5. createList(T... objs)
  6. createListFrom(String... array)
  7. createListFromCollection(Collection collection)
  8. createListFromCommaDelimitedString(String access)
  9. createListFromDotSeparatedString(String s)