chibenwa commented on code in PR #1350:
URL: https://github.com/apache/james-project/pull/1350#discussion_r1040353751


##########
mailbox/api/src/main/java/org/apache/james/mailbox/model/SearchQuery.java:
##########
@@ -1278,6 +1296,50 @@ public String toString() {
         }
     }
 
+    /**
+     * Filters on the save date.
+     */
+    public static class SaveDateCriterion extends Criterion {
+
+        private final DateOperator operator;
+
+        public SaveDateCriterion(DateOperator operator) {
+            super();
+            this.operator = operator;
+        }
+
+        /**
+         * Gets the search operation and value to be evaluated.
+         *
+         * @return the <code>Operator</code>, not null
+         */
+        public DateOperator getOperator() {
+            return operator;
+        }
+
+        @Override
+        public int hashCode() {
+            return Objects.hashCode(operator);
+        }
+
+        @Override
+        public boolean equals(Object obj) {

Review Comment:
   ```suggestion
           public final boolean equals(Object obj) {
   ```



##########
mailbox/api/src/main/java/org/apache/james/mailbox/model/SearchQuery.java:
##########
@@ -1278,6 +1296,50 @@ public String toString() {
         }
     }
 
+    /**
+     * Filters on the save date.
+     */
+    public static class SaveDateCriterion extends Criterion {
+
+        private final DateOperator operator;
+
+        public SaveDateCriterion(DateOperator operator) {
+            super();

Review Comment:
   Not needed?



##########
mailbox/api/src/main/java/org/apache/james/mailbox/model/SearchQuery.java:
##########
@@ -1278,6 +1296,50 @@ public String toString() {
         }
     }
 
+    /**
+     * Filters on the save date.
+     */
+    public static class SaveDateCriterion extends Criterion {
+
+        private final DateOperator operator;
+
+        public SaveDateCriterion(DateOperator operator) {
+            super();
+            this.operator = operator;
+        }
+
+        /**
+         * Gets the search operation and value to be evaluated.
+         *
+         * @return the <code>Operator</code>, not null
+         */
+        public DateOperator getOperator() {
+            return operator;
+        }
+
+        @Override
+        public int hashCode() {

Review Comment:
   ```suggestion
           public final int hashCode() {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to