Java Set to List setToList(Set set)

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

Description

set To List

License

Apache License

Declaration

public static <T> List<T> setToList(Set<T> set) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static <T> List<T> setToList(Set<T> set) {
        if (set == null) {
            return null;
        }/*ww w  .j  a  va  2  s.  co  m*/
        return new ArrayList<T>(set);
    }
}

Related

  1. convertSetToList(Set set)
  2. convertToList(Set set)
  3. convertToList(Set set)
  4. setToList(Set set)
  5. setToList(Set set)
  6. setToList(Set set)
  7. setToList(Set set)
  8. setToList(Set set)
  9. toList(Set s)