Java List from Array asList(Collection collection)

Here you can find the source of asList(Collection collection)

Description

as List

License

Open Source License

Declaration

public static <T> List<T> asList(Collection<T> collection) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.ArrayList;

import java.util.Collection;

import java.util.List;

public class Main {
    public static <T> List<T> asList(Collection<T> collection) {
        return new ArrayList<T>(collection);
    }/* w ww.  ja  va 2 s  .  c  om*/
}

Related

  1. asList(Collection collection)
  2. asList(Collection collection, Class type)
  3. asList(Collection values)
  4. asList(Collection c)
  5. asList(Collection coll)
  6. asList(double[] array)
  7. asList(E... elements)
  8. asList(E... pEntities)
  9. asList(E[] array)