blob: 6cc362ba8cdb497470fa4be3d8dc8403db92aeff [file] [log] [blame]
root0dbc9812025-05-19 04:41:57 +00001package entity;
2
3import java.io.Serializable;
4import java.util.Objects;
5
6public class UserStarId implements Serializable {
7 public String userid;
8 public String seedid;
9
10 public UserStarId() {}
11
12 public UserStarId(String userid, String seedid) {
13 this.userid = userid;
14 this.seedid = seedid;
15 }
16
17 @Override
18 public boolean equals(Object o) {
19 if (this == o) return true;
20 if (o == null || getClass() != o.getClass()) return false;
21 UserStarId that = (UserStarId) o;
22 return Objects.equals(userid, that.userid) && Objects.equals(seedid, that.seedid);
23 }
24
25 @Override
26 public int hashCode() {
27 return Objects.hash(userid, seedid);
28 }
29}