Last active
August 29, 2015 14:14
-
-
Save tyfkda/b7f5e1cc5111a295d3ea to your computer and use it in GitHub Desktop.
Create immutable Map in Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static final Map<String, String> FOOBAR_MAP = | |
| new ImmutableMap.Builder<String, String>() | |
| .put("foo", "bar") | |
| .build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment