Here you can find the source of setToArrayList(Set> set)
Parameter | Description |
---|---|
set | sourse |
public static List<Object> setToArrayList(Set<?> set)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { /**/*from www . j a va 2s .c o m*/ * Creates ArrayList on base of the Set. * @param set sourse * @return List with elements of the same type as the set. */ public static List<Object> setToArrayList(Set<?> set) { return new ArrayList<>(set); } }