Here you can find the source of setToArrayList(Set> set)
public static List<Object> setToArrayList(Set<?> set)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static List<Object> setToArrayList(Set<?> set) { return new ArrayList<>(set); }//from w w w. j a v a 2 s . c om }