question: public static Set < String > commaDelimitedListToSet ( String str ) { Set < String > set = new TreeSet < String > ( ) ; String [ ] tokens = commaDelimitedListToStringArray ( str ) ; for ( String token : tokens ) { set . add ( token ) ; } return set ; }
target:  Convenience method to convert a CSV string list to a set. Note that this will suppress duplicates.