Created
April 7, 2011 21:38
-
-
Save cgdecker/908797 to your computer and use it in GitHub Desktop.
This file contains 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
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() | |
} | |
}); |
This file contains 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
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