Java List from Array asList(Set set)

Here you can find the source of asList(Set set)

Description

as List

License

Open Source License

Declaration

public static <V> List<V> asList(Set<V> set) 

Method Source Code

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

import java.util.Arrays;
import java.util.List;
import java.util.Set;

public class Main {
    public static <V> List<V> asList(Set<V> set) {
        return (List<V>) Arrays.asList(set.toArray());
    }//from   ww w.j a  va 2s.c o  m

    public static <V> List<V> asList(V... values) {
        return (List<V>) Arrays.asList(values);
    }
}

Related

  1. asList(Object theone)
  2. asList(Object value)
  3. asList(Object value)
  4. asList(Object[] array)
  5. asList(Object[] array)
  6. asList(String data)
  7. asList(String str)
  8. asList(String string)
  9. asList(String strList, String regex)