@ SafeVarargs public static < T > List < T > createList ( T ... _entries ) { List < T > l = new ArrayList <> ( ) ; if ( _entries != null ) { l . addAll ( Arrays . asList ( _entries ) ) ; } return l ; }
Creates a list from a varargs parameter array . The generic list is created with the same type as the parameters .