Here you can find the source of createList(T... items)
@SafeVarargs public static <T> List<T> createList(T... items)
//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); } }