Java Set to ArrayList setToArrayList(Set set)

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

Description

Creates ArrayList on base of the Set.

License

Open Source License

Parameter

Parameter Description
set sourse

Return

List with elements of the same type as the set.

Declaration


public static List<Object> setToArrayList(Set<?> set) 

Method Source Code


//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);
    }
}

Related

  1. cast(Set p)
  2. cast(Set set)
  3. cast(Set set)
  4. setToArrayList(Set set)