Skip to content

Instantly share code, notes, and snippets.

@ggzeng
Created January 21, 2024 10:22
Show Gist options
  • Save ggzeng/1170542eaba94d976dd75464b3e1c225 to your computer and use it in GitHub Desktop.
Save ggzeng/1170542eaba94d976dd75464b3e1c225 to your computer and use it in GitHub Desktop.
//com.google.common.collect.ImmutableMap
Map<String, ArrayList<String>> map1 = ImmutableMap.of("list", new ArrayList<>());
Map<String, Integer> map2 = ImmutableMap.<String, Integer>builder().put("key1", 1).put("key2", 2).build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment