Skip to content

Instantly share code, notes, and snippets.

@digvijaybhakuni
Created July 25, 2015 14:08
Show Gist options
  • Save digvijaybhakuni/5de1737b05b9c482a2da to your computer and use it in GitHub Desktop.
Save digvijaybhakuni/5de1737b05b9c482a2da to your computer and use it in GitHub Desktop.
MapFixed.java Snippet
private static final Map<String, String> mapFixed = Collections.<String,String>unmodifiableMap(new HashMap<String,String>(){
private static final long serialVersionUID = 1L;
{
put("key", "value");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment