Changeset 10619 in josm for trunk/src/org/openstreetmap/josm/gui/layer
- Timestamp:
- 2016-07-24T00:19:35+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r10611 r10619 1447 1447 return; 1448 1448 List<Tile> allTiles = allTilesCreate(); 1449 Collections.sort(allTiles,getTileDistanceComparator());1449 allTiles.sort(getTileDistanceComparator()); 1450 1450 for (Tile t : allTiles) { 1451 1451 loadTile(t, force); -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r10611 r10619 646 646 */ 647 647 final List<Way> sortedWays = new ArrayList<>(ways); 648 Collections.sort(sortedWays,new OsmPrimitiveComparator(true, false)); // sort by OsmPrimitive#getUniqueId ascending648 sortedWays.sort(new OsmPrimitiveComparator(true, false)); // sort by OsmPrimitive#getUniqueId ascending 649 649 Collections.reverse(sortedWays); // sort by OsmPrimitive#getUniqueId descending 650 650 for (Way w : sortedWays) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r10611 r10619 1081 1081 } 1082 1082 1083 Collections.sort(dateImgLst,(o1, o2) -> o1.getExifTime().compareTo(o2.getExifTime()));1083 dateImgLst.sort((o1, o2) -> o1.getExifTime().compareTo(o2.getExifTime())); 1084 1084 1085 1085 return dateImgLst; -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java
r10611 r10619 11 11 import java.util.Arrays; 12 12 import java.util.Collection; 13 import java.util.Collections;14 13 15 14 import javax.swing.AbstractAction; … … 278 277 /* we must have got at least one waypoint now */ 279 278 280 Collections.sort((ArrayList<WayPoint>) waypoints,(a, b) -> a.time <= b.time ? -1 : 1);279 ((ArrayList<WayPoint>) waypoints).sort((a, b) -> a.time <= b.time ? -1 : 1); 281 280 282 281 firstTime = -1.0; /* this time of the first waypoint, not first trackpoint */ -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r10611 r10619 19 19 import java.util.ArrayList; 20 20 import java.util.Collection; 21 import java.util.Collections;22 21 import java.util.List; 23 22 … … 234 233 if (from instanceof MarkerLayer) { 235 234 data.addAll(((MarkerLayer) from).data); 236 Collections.sort(data,(o1, o2) -> Double.compare(o1.time, o2.time));235 data.sort((o1, o2) -> Double.compare(o1.time, o2.time)); 237 236 } 238 237 }
Note:
See TracChangeset
for help on using the changeset viewer.