Skip to content

Commit

Permalink
Add comment for ExerciseInformationDTO equals
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAnzinger committed May 8, 2024
1 parent 94f4e98 commit e0a6637
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public boolean equals(Object other) {
}

if (other instanceof ExerciseInformationDTO otherDTO) {
// Compare all fields for equality, for dates the isEqual method is used to compare the date and time
return id == otherDTO.id && shortName.equals(otherDTO.shortName) && title.equals(otherDTO.title) && start.isEqual(otherDTO.start) && due.isEqual(otherDTO.due)
&& type.equals(otherDTO.type);
}
Expand Down

0 comments on commit e0a6637

Please sign in to comment.