main
Last change
on this file since 3fe36de was c02189f, checked in by Petar Partaloski <ppartaloski@…>, 2 years ago |
Added new core functionalities, fixed bugs and improved visual clarity
|
-
Property mode
set to
100644
|
File size:
787 bytes
|
Rev | Line | |
---|
[c02189f] | 1 | package com.wediscussmovies.project.querymodels;
|
---|
| 2 |
|
---|
| 3 | import lombok.Data;
|
---|
| 4 |
|
---|
| 5 | import java.util.Objects;
|
---|
| 6 |
|
---|
| 7 | @Data
|
---|
| 8 | public class DiscussionLikes {
|
---|
| 9 | private Integer discussionId;
|
---|
| 10 | private Long likes;
|
---|
| 11 |
|
---|
| 12 | public DiscussionLikes(Integer discussionId, Long likes) {
|
---|
| 13 | this.discussionId = discussionId;
|
---|
| 14 | this.likes = likes;
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public DiscussionLikes() {
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | @Override
|
---|
| 21 | public boolean equals(Object o) {
|
---|
| 22 | if (this == o) return true;
|
---|
| 23 | if (o == null || getClass() != o.getClass()) return false;
|
---|
| 24 | DiscussionLikes that = (DiscussionLikes) o;
|
---|
| 25 | return Objects.equals(discussionId, that.discussionId) && Objects.equals(likes, that.likes);
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | @Override
|
---|
| 29 | public int hashCode() {
|
---|
| 30 | return Objects.hash(discussionId, likes);
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.