@Test public void testSet() { final Set<String> set = new HashSet<String>(); set.add("hello"); set.add("world"); assertEquals(set, Util.set("hello", "world")); }
public static <A> Set<A> set(A... elements) { final Set<A> set = new HashSet<A>(elements.length); for (A element : elements) { set.add(element); } return set; }
Util { public static <A> Set<A> set(A... elements) { final Set<A> set = new HashSet<A>(elements.length); for (A element : elements) { set.add(element); } return set; } }
Util { public static <A> Set<A> set(A... elements) { final Set<A> set = new HashSet<A>(elements.length); for (A element : elements) { set.add(element); } return set; }  }
Util { public static <A> Set<A> set(A... elements) { final Set<A> set = new HashSet<A>(elements.length); for (A element : elements) { set.add(element); } return set; }  static List<A> list(A... elements); static Set<A> set(A... elements); static A execute(ExceptionAction<A> action); }
Util { public static <A> Set<A> set(A... elements) { final Set<A> set = new HashSet<A>(elements.length); for (A element : elements) { set.add(element); } return set; }  static List<A> list(A... elements); static Set<A> set(A... elements); static A execute(ExceptionAction<A> action);  }