A lot
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
package com.flaremicro.visualforecast.datamart;
|
||||
|
||||
public class TownInfo {
|
||||
public class TownInfo implements Comparable<TownInfo> {
|
||||
public final String code;
|
||||
public final String townName;
|
||||
public final String province;
|
||||
public final float northLat;
|
||||
public final float westLong;
|
||||
public final int priority;
|
||||
|
||||
public TownInfo(String code, String townName, String province, float northLat, float westLong) {
|
||||
public TownInfo(String code, String townName, String province, float northLat, float westLong, int priority) {
|
||||
this.code = code;
|
||||
this.townName = townName;
|
||||
this.province = province;
|
||||
this.northLat = northLat;
|
||||
this.westLong = westLong;
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(TownInfo o) {
|
||||
return priority - o.priority;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user