/*
- * 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
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;
* <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
void setShareUserSharee (final User shareUserSharer);
/**
- * Getter for share creation timestamp
+ * Getter for share created timestamp
* <p>
- * @return Share creation timestamp
+ * @return Share created timestamp
*/
- Calendar 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 Calendar 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);