Java List Create createList(T... items)

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

Description

create List

License

Open Source License

Declaration

@SafeVarargs
    public static <T> List<T> createList(T... items) 

Method Source Code

//package com.java2s;
/**//from w w w .  j  a  v a  2 s . c o m
 * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */

import java.util.Arrays;

import java.util.List;

public class Main {
    @SafeVarargs
    public static <T> List<T> createList(T... items) {
        return Arrays.asList(items);
    }
}

Related

  1. createList(T value, int n)
  2. createList(T... _entries)
  3. createList(T... array)
  4. createList(T... element)
  5. createList(T... items)
  6. createList(T... objs)
  7. createList(T... params)
  8. createListFrom(String... array)
  9. createListFromCollection(Collection collection)