Use unique IDs for replies, too
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Reply.java
index c229d04..69769eb 100644 (file)
@@ -51,7 +51,7 @@ public interface Reply<T extends Reply<T>> extends Identified {
                 */
                @Override
                public boolean apply(Reply<?> reply) {
-                       return (reply == null) ? false : reply.getTime() <= System.currentTimeMillis();
+                       return (reply != null) && (reply.getTime() <= System.currentTimeMillis());
                }
 
        };
@@ -62,6 +62,7 @@ public interface Reply<T extends Reply<T>> extends Identified {
         * @return The ID of the reply
         */
        public String getId();
+       String getInternalId();
 
        /**
         * Returns the Sone that posted this reply.