Skip to content

Instantly share code, notes, and snippets.

@toto-castaldi
Last active February 17, 2016 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toto-castaldi/300d56985b4d307fc8d0 to your computer and use it in GitHub Desktop.
Save toto-castaldi/300d56985b4d307fc8d0 to your computer and use it in GitHub Desktop.
//guava
import com.google.common.collect.ImmutableMap
return new ImmutableMap.Builder<String, Integer>()
.put("one", 1)
.put("two", 2)
.put("three", 3)
.build();
import java.util.Collections;
Collections.<String,String>emptyMap();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment