This commit is contained in:
Flare Microsystems
2024-03-15 23:45:13 -07:00
parent 37c506249a
commit 88a566dcbe
5 changed files with 182 additions and 49 deletions

View File

@@ -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;
}
}