X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjaddressbookshare%2Fmodel%2Faddressbook%2Fshared%2FShareableAddressbook.java;h=3fb51bbd224e39fa15ec8d20d0412892b2c8daa2;hb=32d72a612a887c6fb49ceeed18d4090686c11086;hp=1683e6319f3ef944329bb6bba68bb2075e8b3b05;hpb=8ebe9439ad91fc870c37651f3e17085c146d3903;p=jaddressbook-share-core.git diff --git a/src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java b/src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java index 1683e63..3fb51bb 100644 --- a/src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java +++ b/src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Roland Häder + * Copyright (C) 2016 - 2020 Free Software Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ package org.mxchange.jaddressbookshare.model.addressbook.shared; import java.io.Serializable; -import java.util.Calendar; +import java.util.Date; import org.mxchange.jaddressbook.model.addressbook.Addressbook; import org.mxchange.jusercore.model.user.User; @@ -26,7 +26,7 @@ import org.mxchange.jusercore.model.user.User; *

* @author Roland Häder */ -public interface ShareableAddressbook extends Serializable { +public interface ShareableAddressbook extends Comparable, Serializable { /** * Getter for shared address book instance @@ -85,18 +85,32 @@ public interface ShareableAddressbook extends Serializable { void setShareUserSharee (final User shareUserSharer); /** - * Getter for share creation timestamp + * Getter for share created timestamp *

- * @return Share creation timestamp + * @return Share created timestamp */ - Calendar getShareCreated (); + Date getShareEntryCreated (); /** - * Setter for share creation timestamp + * Setter for share created timestamp *

- * @param shareCreated Share creation timestamp + * @param shareCreated Share created timestamp */ - void setShareCreated (final Calendar shareCreated); + void setShareEntryCreated (final Date shareCreated); + + /** + * Getter for share updated timestamp + *

+ * @return Share updated timestamp + */ + Date getShareEntryUpdated (); + + /** + * Setter for share updated timestamp + *

+ * @param shareUpdated Share updated timestamp + */ + void setShareEntryUpdated (final Date shareUpdated); @Override boolean equals (final Object object);