]> git.mxchange.org Git - jbonuscard-lib.git/blob - src/org/mxchange/addressbook/model/addressbook/entry/AddressbookEntry.java
Fixed getter calls, the new ones are more descriptive.
[jbonuscard-lib.git] / src / org / mxchange / addressbook / model / addressbook / entry / AddressbookEntry.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 package org.mxchange.addressbook.model.addressbook.entry;
18
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.addressbook.model.addressbook.Addressbook;
22 import org.mxchange.jcontacts.contact.Contact;
23 import org.mxchange.jcontactsbusiness.BusinessContact;
24
25 /**
26  * A POJI for addressbook entries
27  * <p>
28  * @author Roland Haeder<roland@mxchange.org>
29  */
30 public interface AddressbookEntry extends Serializable {
31
32         /**
33          * Getter for id number
34          * <p>
35          * @return Id number
36          */
37         Long getAddressbookEntryId ();
38
39         /**
40          * Setter for id number
41          * <p>
42          * @param addressbookEntryId Id number
43          */
44         void setAddressbookEntryId (final Long addressbookEntryId);
45
46         /**
47          * Getter for business contact
48          * <p>
49          * @return Business contact
50          */
51         BusinessContact getAddressbookEntryBusinessContact ();
52
53         /**
54          * Setter for business contact
55          * <p>
56          * @param addressbookEntryBusinessContact Business contact
57          */
58         void setAddressbookEntryBusinessContact (final BusinessContact addressbookEntryBusinessContact);
59
60         /**
61          * Getter for entry created timestamp
62          * <p>
63          * @return Entry created timestamp
64          */
65         Calendar getAddressbookEntryCreated ();
66
67         /**
68          * Setter for entry created timestamp
69          * <p>
70          * @param addressbookEntryCreated Entry created timestamp
71          */
72         void setAddressbookEntryCreated (final Calendar addressbookEntryCreated);
73
74         /**
75          * Getter for private contact
76          * <p>
77          * @return Private contact
78          */
79         Contact getAddressbookEntryPrivateContact ();
80
81         /**
82          * Setter for private contact
83          * <p>
84          * @param addressbookEntryPrivateContact Private contact
85          */
86         void setAddressbookEntryPrivateContact (final Contact addressbookEntryPrivateContact);
87
88         /**
89          * Getter for address book
90          * <p>
91          * @return Address book
92          */
93         Addressbook getAddressbookId ();
94
95         /**
96          * Setter for address book
97          * <p>
98          * @param addressbookId Address book
99          */
100         void setAddressbookId (final Addressbook addressbookId);
101
102         @Override
103         boolean equals (final Object object);
104
105         @Override
106         int hashCode ();
107 }