+ void combineScores(Map<String, Set<Score>> combined, Map<String, Score> scores) { \r
+ if(scores==null) { \r
+ return; \r
+ }\r
+ if (combined.isEmpty()) {\r
+ for (String key : scores.keySet()) {\r
+ Set<Score> allScores = new TreeSet<Score>();\r
+ combined.put(key, allScores);\r
+ }\r
+ }\r
+ for (String key : scores.keySet()) {\r
+ Set<Score> allScores= combined.get(key);\r
+ assert allScores!=null; \r
+ Score score = scores.get(key);\r
+ allScores.add(score);\r
+ combined.put(key, allScores);\r
+ }\r
+ }\r
+\r
+ \r
+ \r