Changeset 10767 in osm for applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSInfo.java
- Timestamp:
- 2008-09-18T09:43:02+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSInfo.java
r10382 r10767 8 8 * @author Frederik Ramm <frederik@remote.org> 9 9 */ 10 public class WMSInfo {10 public class WMSInfo implements Comparable { 11 11 12 12 String name; … … 23 23 Main.pref.put("wmsplugin.url." + prefid + ".url", url); 24 24 } 25 25 public int compareTo(Object c) 26 { 27 Integer i = 0; 28 if(c instanceof WMSInfo) 29 { 30 WMSInfo in = (WMSInfo)c; 31 i = name.compareTo(in.name); 32 if(i == 0) 33 i = url.compareTo(in.url); 34 if(i == 0) 35 i = prefid-in.prefid; 36 } 37 return i; 38 } 26 39 }
Note:
See TracChangeset
for help on using the changeset viewer.