source: branches/supervisor/src/test/java/omq/test/python/Contact.java

Last change on this file was 83, checked in by stoda, 11 years ago

J

File size: 1.4 KB
Line 
1package omq.test.python;
2
3import java.io.Serializable;
4
5/**
6 *
7 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
8 *
9 */
10public class Contact implements Serializable {
11
12        /**
13         *
14         */
15        private static final long serialVersionUID = 1L;
16
17        private String name;
18        private String surname;
19        private String phone;
20        private int age;
21        private Address address;
22
23        private String[] emails;
24
25        public Contact(String name, String surname, String phone, int age, Address address, String[] emails) {
26                this.name = name;
27                this.surname = surname;
28                this.phone = phone;
29                this.age = age;
30                this.address = address;
31                this.emails = emails;
32        }
33
34        public String getName() {
35                return name;
36        }
37
38        public void setName(String name) {
39                this.name = name;
40        }
41
42        public String getSurname() {
43                return surname;
44        }
45
46        public void setSurname(String surname) {
47                this.surname = surname;
48        }
49
50        public String getPhone() {
51                return phone;
52        }
53
54        public void setPhone(String phone) {
55                this.phone = phone;
56        }
57
58        public int getAge() {
59                return age;
60        }
61
62        public void setAge(int age) {
63                this.age = age;
64        }
65
66        public Address getAddress() {
67                return address;
68        }
69
70        public void setAddress(Address address) {
71                this.address = address;
72        }
73
74        public String[] getEmails() {
75                return emails;
76        }
77
78        public void setEmails(String[] emails) {
79                this.emails = emails;
80        }
81
82        @Override
83        public String toString() {
84                return "Name: " + this.name + ", phone: " + this.phone;
85        }
86}
Note: See TracBrowser for help on using the repository browser.