Here you can find the source of listOfArrays(T[]... values)
Parameter | Description |
---|---|
values | Array of arrays |
T | Array of any type |
public static <T> List<T[]> listOfArrays(T[]... values)
//package com.java2s; //License from project: GNU General Public License import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { /**/*w w w . j a va 2 s. c o m*/ * Simple wrapper for Arrays.asList() * @param values Array of arrays * @param <T> Array of any type * @return List */ public static <T> List<T[]> listOfArrays(T[]... values) { return new ArrayList<T[]>(Arrays.asList(values)); } }