2023-01-27 15:14:36 +01:00
|
|
|
package com.bib.essensbestellungsverwaltung;
|
2023-01-30 04:26:30 +01:00
|
|
|
/*
|
|
|
|
@author Malte Schulze Hobeling
|
|
|
|
*/
|
2023-01-27 15:14:36 +01:00
|
|
|
|
|
|
|
public class Address {
|
|
|
|
private long id;
|
|
|
|
private String street;
|
|
|
|
private String number;
|
|
|
|
private String plz;
|
|
|
|
private String city;
|
|
|
|
|
|
|
|
public long getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getStreet() {
|
|
|
|
return street;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getNumber() {
|
|
|
|
return number;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getPlz() {
|
|
|
|
return plz;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getCity() {
|
|
|
|
return city;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Address(long id, String street, String number, String plz, String city) {
|
|
|
|
this.id = id;
|
|
|
|
this.street = street;
|
|
|
|
this.number = number;
|
|
|
|
this.plz = plz;
|
|
|
|
this.city = city;
|
|
|
|
}
|
2023-01-30 04:26:30 +01:00
|
|
|
public Address(String street, String number, String plz, String city) {
|
|
|
|
this.id = -1;
|
|
|
|
this.street = street;
|
|
|
|
this.number = number;
|
|
|
|
this.plz = plz;
|
|
|
|
this.city = city;
|
|
|
|
}
|
2023-01-27 15:14:36 +01:00
|
|
|
}
|