01: /*
02: * put your module comment here
03: * formatted with JxBeauty (c) johann.langhofer@nextra.at
04: */
05:
06: package phoneList.business;
07:
08: import phoneList.spec.Person;
09:
10: public class PersonImpl implements Person {
11: private String firstName;
12: private String lastName;
13: private String phoneNumber;
14: private String id;
15:
16: public PersonImpl() {
17: }
18:
19: public PersonImpl(String firstName, String lastName,
20: String phoneNumber, String id) {
21: this .firstName = firstName;
22: this .lastName = lastName;
23: this .phoneNumber = phoneNumber;
24: this .id = id;
25: }
26:
27: public void setFirstName(String firstName) {
28: this .firstName = firstName;
29: }
30:
31: public String getFirstName() {
32: return firstName;
33: }
34:
35: public void setLastName(String lastName) {
36: this .lastName = lastName;
37: }
38:
39: public String getLastName() {
40: return lastName;
41: }
42:
43: public void setPhoneNumber(String phoneNumber) {
44: this .phoneNumber = phoneNumber;
45: }
46:
47: public String getPhoneNumber() {
48: return phoneNumber;
49: }
50:
51: public void setId(String id) {
52: this .id = id;
53: }
54:
55: public String getId() {
56: return id;
57: }
58:
59: public String toString() {
60: return firstName + " " + lastName + " " + phoneNumber + " "
61: + id;
62: }
63: }
|