Here you can find the source of asList(final Set
Parameter | Description |
---|---|
elements | a parameter |
public static <T> List<T> asList(final Set<T> elements)
//package com.java2s; import java.util.ArrayList; import java.util.List; import java.util.Set; public class Main { /**/* ww w .j a v a 2 s.c o m*/ * Returns the elements of the given set as list. * * @param elements * @return */ public static <T> List<T> asList(final Set<T> elements) { final List<T> elementList = new ArrayList<T>(); elementList.addAll(elements); return elementList; } }