-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathArdTopicInfoDto.java
More file actions
82 lines (65 loc) · 1.82 KB
/
Copy pathArdTopicInfoDto.java
File metadata and controls
82 lines (65 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package mServer.crawler.sender.ard;
import java.util.Objects;
import java.util.Set;
public class ArdTopicInfoDto {
private final Set<ArdFilmInfoDto> filmInfos;
private String id;
private int pageNumber;
private int pageSize;
private int totalElements;
private int maxSubPageNumber;
public ArdTopicInfoDto(final Set<ArdFilmInfoDto> filmInfos) {
this.filmInfos = filmInfos;
setPageNumber(0);
setPageSize(0);
setTotalElements(0);
setMaxSubPageNumber(0);
}
public Set<ArdFilmInfoDto> getFilmInfos() {
return filmInfos;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (!(o instanceof final ArdTopicInfoDto that)) {
return false;
}
return getId() == that.getId()
&& getPageNumber() == that.getPageNumber()
&& getPageSize() == that.getPageSize()
&& getTotalElements() == that.getTotalElements()
&& Objects.equals(filmInfos, that.filmInfos);
}
@Override
public int hashCode() {
return Objects.hash(filmInfos, getId(), getPageNumber(), getPageSize(), getTotalElements());
}
public String getId() { return id; }
public int getPageNumber() {
return pageNumber;
}
public void setPageNumber(int pageNumber) {
this.pageNumber = pageNumber;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getTotalElements() {
return totalElements;
}
public void setTotalElements(int totalElements) {
this.totalElements = totalElements;
}
public void setId(String id) { this.id = id; }
public int getMaxSubPageNumber() {
return maxSubPageNumber;
}
public void setMaxSubPageNumber(final int maxSubPageNumber) {
this.maxSubPageNumber = maxSubPageNumber;
}
}