root | 0dbc981 | 2025-05-19 04:41:57 +0000 | [diff] [blame] | 1 | package entity; |
| 2 | |
| 3 | import java.io.Serializable; |
| 4 | import java.util.Objects; |
| 5 | |
| 6 | public 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 | } |