Skip to content

Instantly share code, notes, and snippets.

@cgdecker
Created April 7, 2011 21:38
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 cgdecker/908797 to your computer and use it in GitHub Desktop.
Save cgdecker/908797 to your computer and use it in GitHub Desktop.
Multimap<String, String> multimap = Multimaps.newMultimap(
new TreeMap<String, Collection<String>>(),
new Supplier<List<String>>() {
@Override public List<String> get() {
return new ArrayList<String>(); // could use Lists.newArrayList()
}
});
Multimap<String, String> multimap = Multimaps.newMultimap(
new TreeMap<String, Collection<String>>(), ArrayList<String>#new);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment