|
@@ -74,6 +74,10 @@ public class EmailContentInfoDTO implements Serializable {
|
|
|
*/
|
|
|
private int fileSize;
|
|
|
|
|
|
+ public String groupBy() {
|
|
|
+ return this.emailTitle + this.emailAddress + this.emailDate + this.senderEmail;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public boolean equals(Object o) {
|
|
|
if (this == o) return true;
|
|
@@ -84,13 +88,13 @@ public class EmailContentInfoDTO implements Serializable {
|
|
|
// && Objects.equals(fileName, that.fileName)
|
|
|
// && Objects.equals(filePath, that.filePath)
|
|
|
// && Objects.equals(fileSize, that.fileSize)
|
|
|
- && Objects.equals(emailType, that.emailType)
|
|
|
+// && Objects.equals(emailType, that.emailType)
|
|
|
&& Objects.equals(senderEmail, that.senderEmail);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int hashCode() {
|
|
|
- return Objects.hash(emailAddress, emailTitle, emailDate, emailType, senderEmail);
|
|
|
+ return Objects.hash(emailAddress, emailTitle, emailDate, senderEmail);
|
|
|
}
|
|
|
|
|
|
@Override
|