Changeset 4405 in josm for trunk/src/org/openstreetmap/josm/data/imagery
- Timestamp:
- 2011-09-07T23:54:08+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r4240 r4405 58 58 private String attributionLinkURL; 59 59 private String termsOfUseURL; 60 private String countryCode = ""; 60 61 61 62 public ImageryInfo() { … … 166 167 public int compareTo(ImageryInfo in) 167 168 { 168 int i = name.compareTo(in.name); 169 if(i == 0) { 169 int i = countryCode.compareTo(in.countryCode); 170 if (i == 0) { 171 i = name.compareTo(in.name); 172 } 173 if (i == 0) { 170 174 i = url.compareTo(in.url); 171 175 } 172 if(i == 0) { 176 if (i == 0) { 173 177 i = Double.compare(pixelPerDegree, in.pixelPerDegree); 174 178 } … … 295 299 } 296 300 301 public String getCountryCode() { 302 return countryCode; 303 } 304 305 public void setCountryCode(String countryCode) { 306 this.countryCode = countryCode; 307 } 308 297 309 /** 298 310 * Get the projections supported by the server. Only relevant for
Note:
See TracChangeset
for help on using the changeset viewer.
