News for hackers. Stuff that matters.
Re:Double Brace Initialization in Java by jrockway on Sunday August 19, 2012 @01:31AM (#4403320)
You don't even need to use the Builder directly, just use the structure's "of" method:

   ImmutableSet<Foo> foos = ImmutableSet.of(a, few, elements);
   ImmutableMap<Key, Value> map = ImmutableMap.of(k1, v1, k2, v2);

There are no comments on this comment yet.