/*
- * 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
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
* <p>
* @return Share creation timestamp
*/
- Calendar getShareCreated ();
+ Date getShareCreated ();
/**
* Setter for share creation timestamp
* <p>
* @param shareCreated Share creation timestamp
*/
- void setShareCreated (final Calendar shareCreated);
+ void setShareCreated (final Date shareCreated);
@Override
boolean equals (final Object object);