JEP 186: Collection Literals

Remi Forax forax at univ-mlv.fr
Thu Feb 20 07:14:52 PST 2014


On 02/20/2014 03:47 PM, Stephen Colebourne wrote:
[...]

> Personally, I can't see how a builder can possibly be as neat as
> List.of(1, 2, 3).
>
> Stephen

It's not incompatible,
   Map.of(1, "foo").of(2, "bar").toMap();

Rémi



More information about the lambda-dev mailing list