Changeset 11815 in josm
- Timestamp:
- 2017-04-01T02:22:13+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r11798 r11815 246 246 return new WMTSDefaultLayer(selectedLayer.identifier, selectedLayer.tileMatrixSet.identifier); 247 247 } 248 249 private static List<Entry<String, List<Layer>>> groupLayersByNameAndTileMatrixSet(Collection<Layer> layers) { 250 Map<String, List<Layer>> layerByName = layers.stream().collect( 251 Collectors.groupingBy(x -> x.identifier + '\u001c' + x.tileMatrixSet.identifier)); 252 return layerByName.entrySet().stream().sorted(Map.Entry.comparingByKey()).collect(Collectors.toList()); 253 } 248 254 } 249 255 … … 258 264 259 265 private final WMTSDefaultLayer defaultLayer; 260 261 266 262 267 /** … … 313 318 matcher.appendTail(output); 314 319 return output.toString(); 315 }316 317 private static List<Entry<String, List<Layer>>> groupLayersByNameAndTileMatrixSet(Collection<Layer> layers) {318 Map<String, List<Layer>> layerByName = layers.stream().collect(319 Collectors.groupingBy(x -> x.identifier + '\u001c' + x.tileMatrixSet.identifier));320 return layerByName.entrySet().stream().sorted(Map.Entry.comparingByKey()).collect(Collectors.toList());321 320 } 322 321
Note:
See TracChangeset
for help on using the changeset viewer.