Skip to content

Commit

Permalink
[MODORSERS-1026] - added hashcode in TemplateProcessingRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
azizbekxm committed Mar 29, 2024
1 parent 7dc0657 commit d83c8ab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/org/folio/models/TemplateProcessingRequest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.folio.models;

import java.util.List;
import java.util.Objects;
import java.util.UUID;

import lombok.Getter;
Expand Down Expand Up @@ -62,5 +63,20 @@ public Item setName(String name) {
return this;
}
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof TemplateProcessingRequest that)) return false;
return Objects.equals(templateId, that.templateId)
&& Objects.equals(lang, that.lang)
&& Objects.equals(outputFormat, that.outputFormat)
&& Objects.equals(context, that.context);
}

@Override
public int hashCode() {
return Objects.hash(templateId, lang, outputFormat, context);
}
}

0 comments on commit d83c8ab

Please sign in to comment.