Made postalCode into string and fixed coding style

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2017-04-19 11:20:29 +02:00
parent 2cbba5a7f1
commit 82e0e0f12d
1 changed files with 13 additions and 13 deletions

View File

@ -6,10 +6,10 @@ package de.dis2017.data;
public class Estate { public class Estate {
private int id = -1; private int id = -1;
private String city; private String city;
private int postalcode; private String postalCode;
private String street; private String street;
private int streetnumber; private int streetNumber;
private int squarearea; private int squareArea;
public int getId() { public int getId() {
return id; return id;
@ -27,12 +27,12 @@ public class Estate {
this.city = city; this.city = city;
} }
public int getPostalcode() { public String getPostalCode() {
return postalcode; return postalCode;
} }
public void setPostalcode(int postalcode) { public void setPostalCode(String postalCode) {
this.postalcode = postalcode; this.postalCode = postalCode;
} }
public String getStreet() { public String getStreet() {
@ -44,18 +44,18 @@ public class Estate {
} }
public int getStreetNumber() { public int getStreetNumber() {
return streetnumber; return streetNumber;
} }
public void setStreetnumber(int streetnumber) { public void setStreetNumber(int streetNumber) {
this.streetnumber = streetnumber; this.streetNumber = streetNumber;
} }
public int getSquareArea() { public int getSquareArea() {
return streetnumber; return squareArea;
} }
public void setSquareArea(int squarearea) { public void setSquareArea(int squareArea) {
this.squarearea = squarearea; this.squareArea = squareArea;
} }
} }