public static Set<String> commaDelimitedListToSet(String str){
  Set<String> set=new TreeSet<>();
  String[] tokens=commaDelimitedListToStringArray(str);
  set.addAll(Arrays.asList(tokens));
  return set;
}

public static Set < String > commaDelimitedListToSet ( String str ) { Set < String > set = new TreeSet < > ( ) ; String [ ] tokens = commaDelimitedListToStringArray ( str ) ; set . addAll ( Arrays . asList ( tokens ) ) ; return set ; }
convenience method to convert a csv string list to a set . note that this will suppress duplicates .
