2 * Copyright (C) 2015 Roland Haeder
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.addressbook.model.addressbook.shared;
19 import java.io.Serializable;
20 import org.mxchange.addressbook.model.addressbook.Addressbook;
21 import org.mxchange.jusercore.model.user.User;
24 * A POJI for shared address books
26 * @author Roland Haeder
28 public interface ShareableAddressbook extends Serializable {
31 * Getter for shared address book instance
33 * @return Shared address book instance
35 public Addressbook getShareAddressbook ();
38 * Setter for shared address book instance
40 * @param shareAddressbook Shared address book instance
42 public void setShareAddressbook (final Addressbook shareAddressbook);
45 * Getter for id number
49 public Long getShareId ();
52 * Setter for id number
54 * @param shareId Id number
56 public void setShareId (final Long shareId);
59 * Getter for address book owner instance
61 * @return Address book owner instance
63 public User getShareUserOwner ();
66 * Setter for address book owner instance
68 * @param shareUserOwner Address book owner instance
70 public void setShareUserOwner (final User shareUserOwner);
73 * Getter for address book sharee instance
75 * @return Address book sharee instance
77 public User getShareUserSharee ();
80 * Setter for address book sharee instance
82 * @param shareUserSharer Address book sharee instance
84 public void setShareUserSharee (final User shareUserSharer);
87 public boolean equals (final Object object);
90 public int hashCode ();