3 ms·
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); Immuta
by jrockway 14y ago
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);