@SafeVarargs
    @SuppressWarnings("varargs")
    public static <T> List<T> list(T... a) {
        ArrayList<T> result = new ArrayList<T>();
        if (a == null) {
            result.add(null);
            return result;
        }
        for (T elem : a) {
            result.add(elem);
        }
        return result;
    }
@ SafeVarargs @ SuppressWarnings ( "varargs" ) public static < T > List < T > list ( T ... a ) { ArrayList < T > result = new ArrayList < T > ( ) ; if ( a == null ) { result . add ( null ) ; return result ; } for ( T elem : a ) { result . add ( elem ) ; } return result ; }
Represent a [e1, e2, e3] construct.