forked from fanchaoo/hahu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTopic.java
More file actions
85 lines (68 loc) · 1.57 KB
/
Topic.java
File metadata and controls
85 lines (68 loc) · 1.57 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
83
84
85
package com.fc.model;
public class Topic {
private Integer topicId;
private String topicName;
private String topicDesc;
private String topicImage;
private Integer parentTopicId;
private Integer followedCount;
public Integer getTopicId() {
return topicId;
}
public void setTopicId(Integer topicId) {
this.topicId = topicId;
}
public String getTopicName() {
return topicName;
}
public void setTopicName(String topicName) {
this.topicName = topicName;
}
public String getTopicDesc() {
return topicDesc;
}
public void setTopicDesc(String topicDesc) {
this.topicDesc = topicDesc;
}
public String getTopicImage() {
return topicImage;
}
public void setTopicImage(String topicImage) {
this.topicImage = topicImage;
}
public Integer getParentTopicId() {
return parentTopicId;
}
public void setParentTopicId(Integer parentTopicId) {
this.parentTopicId = parentTopicId;
}
public Integer getFollowedCount() {
return followedCount;
}
public void setFollowedCount(Integer followedCount) {
this.followedCount = followedCount;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((topicId == null) ? 0 : topicId.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Topic other = (Topic) obj;
if (topicId == null) {
if (other.topicId != null)
return false;
} else if (!topicId.equals(other.topicId))
return false;
return true;
}
}