@SafeVarargs public static <T>List<T> asList(final T... array){
  List<T> arrayList=new ArrayList<T>(array.length);
  Collections.addAll(arrayList,array);
  return arrayList;
}

@ SafeVarargs public static < T > List < T > asList ( final T ... array ) { List < T > arrayList = new ArrayList < T > ( array . length ) ; Collections . addAll ( arrayList , array ) ; return arrayList ; }
returns the specified array as a list of elements . < p / >
