]> git.mxchange.org Git - jaddressbook-share-core.git/blobdiff - src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java
Continued:
[jaddressbook-share-core.git] / src / org / mxchange / jaddressbookshare / model / addressbook / shared / ShareableAddressbook.java
index 4a89dda98dbbba66b3d9186434c50866e4713937..3fb51bbd224e39fa15ec8d20d0412892b2c8daa2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 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
@@ -26,7 +26,7 @@ import org.mxchange.jusercore.model.user.User;
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
-public interface ShareableAddressbook extends Serializable {
+public interface ShareableAddressbook extends Comparable<ShareableAddressbook>, 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
         * <p>
-        * @return Share creation timestamp
+        * @return Share created timestamp
         */
-       Date getShareCreated ();
+       Date getShareEntryCreated ();
 
        /**
-        * Setter for share creation timestamp
+        * Setter for share created timestamp
         * <p>
-        * @param shareCreated Share creation timestamp
+        * @param shareCreated Share created timestamp
         */
-       void setShareCreated (final Date shareCreated);
+       void setShareEntryCreated (final Date shareCreated);
+
+       /**
+        * Getter for share updated timestamp
+        * <p>
+        * @return Share updated timestamp
+        */
+       Date getShareEntryUpdated ();
+
+       /**
+        * Setter for share updated timestamp
+        * <p>
+        * @param shareUpdated Share updated timestamp
+        */
+       void setShareEntryUpdated (final Date shareUpdated);
 
        @Override
        boolean equals (final Object object);