Created
March 6, 2012 14:23
-
-
Save sherman/1986537 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Map<String, List<ConfigParameter>> parameterNameToValuesList = Maps.newHashMap(); | |
for (ConfigParameter parameter : parameters) { | |
String name = parameter.getParamName(); | |
if (!parameterNameToValuesList.containsKey(name)) { | |
parameterNameToValuesList.put(name, Lists.<ConfigParameter>newArrayList()); | |
} | |
parameterNameToValuesList.get(name).add(parameter); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment