kucci / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Fluent utils #461

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How about providing some fluent utils, for instance for Maps, so that one can 
chain adding of elements?

Original issue reported on code.google.com by davidkar...@gmail.com on 28 Oct 2010 at 11:57

GoogleCodeExporter commented 9 years ago
If you need something like Map<String, String> map = of("key1", "value1", 
"key2", "value2");

You can look at 
[http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/colle
ct/ImmutableMap.htmlImmutableMap] 

Original comment by amer...@gmail.com on 28 Oct 2010 at 2:29

GoogleCodeExporter commented 9 years ago
Isn't `ImmutableMap.<Integer, String>builder().put(2, "foo").put(37, 
"bar").build()` enough?

Original comment by j...@nwsnet.de on 28 Oct 2010 at 4:08

GoogleCodeExporter commented 9 years ago
This report is too vague to take action on.

Original comment by kevinb@google.com on 18 Jul 2011 at 3:35

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09