X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjaddressbookshare%2Fmodel%2Faddressbook%2Fshared%2FShareableAddressbook.java;h=6e74ac12527afdb6067c38eda4c569b9c1ced3a3;hb=15037ff4d8813cd39ad7fb7adb8bef836634f02b;hp=8cfa160ad1413399571fc9734a7ef04ddfc9f397;hpb=0f47575cb056feb200d02a5732dacc5d44c93392;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 8cfa160..6e74ac1 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, 2017 Roland Häder + * Copyright (C) 2016 - 2022 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);