2 * Copyright (C) 2016 Cho-Time GmbH
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.
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.
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/>.
17 package org.mxchange.jaddressbookcore.model.addressbook.entry;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
22 import org.mxchange.jcontacts.contact.Contact;
23 import org.mxchange.jcontactsbusiness.BusinessContact;
26 * A POJI for addressbook entries
28 * @author Roland Haeder<roland@mxchange.org>
30 public interface AddressbookEntry extends Serializable {
33 * Getter for id number
37 Long getAddressbookEntryId ();
40 * Setter for id number
42 * @param addressbookEntryId Id number
44 void setAddressbookEntryId (final Long addressbookEntryId);
47 * Getter for business contact
49 * @return Business contact
51 BusinessContact getAddressbookEntryBusinessContact ();
54 * Setter for business contact
56 * @param addressbookEntryBusinessContact Business contact
58 void setAddressbookEntryBusinessContact (final BusinessContact addressbookEntryBusinessContact);
61 * Getter for entry created timestamp
63 * @return Entry created timestamp
65 Calendar getAddressbookEntryCreated ();
68 * Setter for entry created timestamp
70 * @param addressbookEntryCreated Entry created timestamp
72 void setAddressbookEntryCreated (final Calendar addressbookEntryCreated);
75 * Getter for private contact
77 * @return Private contact
79 Contact getAddressbookEntryPrivateContact ();
82 * Setter for private contact
84 * @param addressbookEntryPrivateContact Private contact
86 void setAddressbookEntryPrivateContact (final Contact addressbookEntryPrivateContact);
89 * Getter for address book
91 * @return Address book
93 Addressbook getAddressbookId ();
96 * Setter for address book
98 * @param addressbookId Address book
100 void setAddressbookId (final Addressbook addressbookId);
103 boolean equals (final Object object);