]> git.mxchange.org Git - addressbook-swing.git/blob - Addressbook/src/org/mxchange/addressbook/contact/user/UserContact.java
4cf38b14f1a97ba8263cdda6051728436e37a01d
[addressbook-swing.git] / Addressbook / src / org / mxchange / addressbook / contact / user / UserContact.java
1 /*\r
2  * Copyright (C) 2015 Roland Haeder\r
3  *\r
4  * This program is free software: you can redistribute it and/or modify\r
5  * it under the terms of the GNU General Public License as published by\r
6  * the Free Software Foundation, either version 3 of the License, or\r
7  * (at your option) any later version.\r
8  *\r
9  * This program is distributed in the hope that it will be useful,\r
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
12  * GNU General Public License for more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License\r
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
16  */\r
17 package org.mxchange.addressbook.contact.user;\r
18 \r
19 import org.mxchange.addressbook.contact.Contact;\r
20 import org.mxchange.addressbook.contact.book.BookContact;\r
21 \r
22 /**\r
23  *\r
24  * @author Roland Haeder\r
25  * @todo After a Collection has been used in ContactManager, change to BaseContact\r
26  */\r
27 public class UserContact extends BookContact implements Contact {\r
28 \r
29     /**\r
30      * Creates own contact entry\r
31      *\r
32      * @param gender Gender to be set\r
33      * @param surname Surname to be set\r
34      * @param familyName Family name to be set\r
35      * @param companyName Company name\r
36      * @todo Add validation of data\r
37      */\r
38     public UserContact (final char gender, final String surname, final String familyName, final String companyName) {\r
39         // Make sure all constructors are called\r
40         this();\r
41 \r
42         this.setGender(gender);\r
43         this.setSurname(surname);\r
44         this.setFamilyName(familyName);\r
45         this.setCompanyName(companyName);\r
46     }\r
47 \r
48     /**\r
49      * No empty instances can be created of this class\r
50      */\r
51     protected UserContact () {\r
52         super();\r
53     }\r
54 }\r