Here you can find the source of asList(Collection
public static <T> List<T> asList(Collection<T> coll)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; public class Main { public static <T> List<T> asList(T... objs) { return Arrays.asList(objs); }/*from w w w .ja v a 2 s. c o m*/ public static <T> List<T> asList(Collection<T> coll) { return new ArrayList<T>(coll); } }