Here you can find the source of CreateObjectList(Object... values)
Parameter | Description |
---|---|
values | Array of objects |
public static ArrayList CreateObjectList(Object... values)
//package com.java2s; // it under the terms of the GNU General Public License as published by import java.util.*; public class Main { /** Creates a list of objects from an array of objects. *//from ww w . j a v a2s . c o m * @param values Array of objects * @return List of objects */ public static ArrayList CreateObjectList(Object... values) { ArrayList results = new ArrayList(); Collections.addAll(results, values); return results; } }