Skip to content

Commit

Permalink
getter setter
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufsyaifudin committed Oct 24, 2016
1 parent ac57f40 commit d70f7a9
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 36 deletions.
32 changes: 22 additions & 10 deletions wilayah-indonesia/src/main/java/maps/indonesia/model/District.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,40 @@ public class District {
private Integer regency_id;
private String name;
private String alt_name;
private String latitude;
private String longitude;
private Double latitude;
private Double longitude;

public Integer getId() { return id; }

public Integer getRegencyId() { return regency_id; }
public void setId(Integer id) { this.id = id; }

public Integer getRegency_id() { return regency_id; }

public void setRegency_id(Integer regency_id) { this.regency_id = regency_id; }

public String getName() { return name; }

public String getAltName() { return alt_name; }
public void setName(String name) { this.name = name; }

public String getAlt_name() { return alt_name; }

public void setAlt_name(String alt_name) { this.alt_name = alt_name; }

public Double getLatitude() { return latitude; }

public void setLatitude(Double latitude) { this.latitude = latitude; }

public String getLatitude() { return latitude; }
public Double getLongitude() { return longitude; }

public String getLongitude() { return longitude; }
public void setLongitude(Double longitude) { this.longitude = longitude; }

public String toString() {
return "{id: " + getId().toString() +
", regency_id: " + getRegencyId() +
", regency_id: " + getRegency_id().toString() +
", name: " + getName() +
", alt_name: " + getAltName() +
", latitude: " + getLatitude() +
", longitute: " + getLongitude() +
", alt_name: " + getAlt_name() +
", latitude: " + getLatitude().toString() +
", longitute: " + getLongitude().toString() +
"}";
}
}
26 changes: 18 additions & 8 deletions wilayah-indonesia/src/main/java/maps/indonesia/model/Province.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,35 @@ public class Province {
private Integer id;
private String name;
private String alt_name;
private String latitude;
private String longitude;
private Double latitude;
private Double longitude;

public Integer getId() { return id; }

public void setId(Integer id) { this.id = id; }

public String getName() { return name; }

public String getAltName() { return alt_name; }
public void setName(String name) { this.name = name; }

public String getAlt_name() { return alt_name; }

public void setAlt_name(String alt_name) { this.alt_name = alt_name; }

public Double getLatitude() { return latitude; }

public void setLatitude(Double latitude) { this.latitude = latitude; }

public String getLatitude() { return latitude; }
public Double getLongitude() { return longitude; }

public String getLongitude() { return longitude; }
public void setLongitude(Double longitude) { this.longitude = longitude; }

public String toString() {
return "{id: " + getId().toString() +
", name: " + getName() +
", alt_name: " + getAltName() +
", latitude: " + getLatitude() +
", longitute: " + getLongitude() +
", alt_name: " + getAlt_name() +
", latitude: " + getLatitude().toString() +
", longitute: " + getLongitude().toString() +
"}";
}
}
34 changes: 24 additions & 10 deletions wilayah-indonesia/src/main/java/maps/indonesia/model/Regency.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,46 @@
* Created by yusuf on 24/10/16.
*/
public class Regency {

private Integer id;
private Integer province_id;
private String name;
private String alt_name;
private String latitude;
private String longitude;
private Double latitude;
private Double longitude;

public Integer getId() { return id; }

public Integer getProvinceId() { return province_id; }
public void setId(Integer id) { this.id = id; }

public Integer getProvince_id() { return province_id; }

public void setProvince_id(Integer province_id) { this.province_id = province_id; }

public String getName() { return name; }

public String getAltName() { return alt_name; }
public void setName(String name) { this.name = name; }

public String getAlt_name() { return alt_name; }

public void setAlt_name(String alt_name) { this.alt_name = alt_name; }

public Double getLatitude() { return latitude; }

public void setLatitude(Double latitude) { this.latitude = latitude; }

public Double getLongitude() { return longitude; }

public String getLatitude() { return latitude; }
public void setLongitude(Double longitude) { this.longitude = longitude; }

public String getLongitude() { return longitude; }

public String toString() {
return "{id: " + getId().toString() +
", province_id: " + getProvinceId() +
", province_id: " + getProvince_id().toString() +
", name: " + getName() +
", alt_name: " + getAltName() +
", latitude: " + getLatitude() +
", longitute: " + getLongitude() +
", alt_name: " + getAlt_name() +
", latitude: " + getLatitude().toString() +
", longitute: " + getLongitude().toString() +
"}";
}
}
26 changes: 18 additions & 8 deletions wilayah-indonesia/src/main/java/maps/indonesia/model/Village.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,35 @@ public class Village {
private Integer district_id;
private String name;
private String alt_name;
private String latitude;
private String longitude;
private Double latitude;
private Double longitude;

public Integer getId() { return id; }

public Integer getDistrictId() { return district_id; }
public void setId(Integer id) { this.id = id; }

public Integer getDistrict_id() { return district_id; }

public void setDistrict_id(Integer district_id) { this.district_id = district_id; }

public String getName() { return name; }

public String getLatitude() { return latitude; }
public void setName(String name) { this.name = name; }

public Double getLatitude() { return latitude; }

public void setLatitude(Double latitude) { this.latitude = latitude; }

public Double getLongitude() { return longitude; }

public String getLongitude() { return longitude; }
public void setLongitude(Double longitude) { this.longitude = longitude; }

public String toString() {
return "{id: " + getId().toString() +
", district_id: " + getDistrictId() +
", district_id: " + getDistrict_id() +
", name: " + getName() +
", latitude: " + getLatitude() +
", longitute: " + getLongitude() +
", latitude: " + getLatitude().toString() +
", longitute: " + getLongitude().toString() +
"}";
}
}

0 comments on commit d70f7a9

Please sign in to comment.