47 lines
1.0 KiB
Java
47 lines
1.0 KiB
Java
import java.io.Serializable;
|
|
|
|
public class Customer implements Serializable {
|
|
private String address;
|
|
private String contactPerson;
|
|
private boolean smallBusiness;
|
|
|
|
public Customer(String address, String contactPerson, boolean smallBusiness) {
|
|
this.address = address;
|
|
this.contactPerson = contactPerson;
|
|
this.smallBusiness = smallBusiness;
|
|
}
|
|
|
|
public String getAddress() {
|
|
return address;
|
|
}
|
|
|
|
public void setAddress(String address) {
|
|
this.address = address;
|
|
}
|
|
|
|
public String getContactPerson() {
|
|
return contactPerson;
|
|
}
|
|
|
|
public void setContactPerson(String contactPerson) {
|
|
this.contactPerson = contactPerson;
|
|
}
|
|
|
|
public boolean isSmallBusiness() {
|
|
return smallBusiness;
|
|
}
|
|
|
|
public void setSmallBusiness(boolean smallBusiness) {
|
|
this.smallBusiness = smallBusiness;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Customer [address=" + address + ", contactPerson=" + contactPerson + ", smallBusiness=" + smallBusiness
|
|
+ "]";
|
|
}
|
|
|
|
|
|
// Getter und Setter
|
|
}
|