@Test public void testFromCommaSeparatedValues() { Set s = Sets.fromCommaSeparatedValues("1,2,3"); assertTrue(s.contains("1")); assertTrue(s.contains("2")); assertTrue(s.contains("3")); assertEquals(3, s.size()); }
public static final Set<String> fromCommaSeparatedValues(String csv) { if (csv == null || csv.isEmpty()) { return Collections.EMPTY_SET; } String[] tokens = csv.split(","); return new HashSet<String>(Arrays.asList(tokens)); }
Sets { public static final Set<String> fromCommaSeparatedValues(String csv) { if (csv == null || csv.isEmpty()) { return Collections.EMPTY_SET; } String[] tokens = csv.split(","); return new HashSet<String>(Arrays.asList(tokens)); } }
Sets { public static final Set<String> fromCommaSeparatedValues(String csv) { if (csv == null || csv.isEmpty()) { return Collections.EMPTY_SET; } String[] tokens = csv.split(","); return new HashSet<String>(Arrays.asList(tokens)); }  }
Sets { public static final Set<String> fromCommaSeparatedValues(String csv) { if (csv == null || csv.isEmpty()) { return Collections.EMPTY_SET; } String[] tokens = csv.split(","); return new HashSet<String>(Arrays.asList(tokens)); }  static final Set fromMap(Map map, Object... keys); static final Set<String> fromCommaSeparatedValues(String csv); }
Sets { public static final Set<String> fromCommaSeparatedValues(String csv) { if (csv == null || csv.isEmpty()) { return Collections.EMPTY_SET; } String[] tokens = csv.split(","); return new HashSet<String>(Arrays.asList(tokens)); }  static final Set fromMap(Map map, Object... keys); static final Set<String> fromCommaSeparatedValues(String csv);  }