Java List from listOfArrays(T[]... values)

Here you can find the source of listOfArrays(T[]... values)

Description

Simple wrapper for Arrays.asList()

License

Open Source License

Parameter

Parameter Description
values Array of arrays
T Array of any type

Return

List

Declaration

public static <T> List<T[]> listOfArrays(T[]... values) 

Method Source Code

//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));
    }
}

Related

  1. listOf(T value, int size)
  2. listOf(T... args)
  3. listOf(T... elements)
  4. listOf(T... elems)
  5. listOf(T... values)
  6. listOfExceptionsAsString(List exs)
  7. listOfIntegers2ArrayOfInts(List xs)
  8. listOfItems(List items, String separator, String finalConjunction)
  9. listOfOne()