root | ff0769a | 2025-05-18 17:24:41 +0000 | [diff] [blame] | 1 | package entity; |
root | 927f153 | 2025-05-09 05:33:32 +0000 | [diff] [blame] | 2 | |
| 3 | import java.io.Serializable; |
| 4 | import java.util.Objects; |
| 5 | |
| 6 | public class TransportId implements Serializable { |
| 7 | private String taskid; |
| 8 | private String uploaduserid; |
| 9 | private String downloaduserid; |
| 10 | |
| 11 | public TransportId() {} |
| 12 | |
| 13 | public TransportId(String taskid, String uploaduserid, String downloaduserid) { |
| 14 | this.taskid = taskid; |
| 15 | this.uploaduserid = uploaduserid; |
| 16 | this.downloaduserid = downloaduserid; |
| 17 | } |
| 18 | |
| 19 | public String getTaskid() { return taskid; } |
| 20 | public void setTaskid(String taskid) { this.taskid = taskid; } |
| 21 | public String getUploaduserid() { return uploaduserid; } |
| 22 | public void setUploaduserid(String uploaduserid) { this.uploaduserid = uploaduserid; } |
| 23 | public String getDownloaduserid() { return downloaduserid; } |
| 24 | public void setDownloaduserid(String downloaduserid) { this.downloaduserid = downloaduserid; } |
| 25 | |
| 26 | @Override |
| 27 | public boolean equals(Object o) { |
| 28 | if (this == o) return true; |
| 29 | if (o == null || getClass() != o.getClass()) return false; |
| 30 | TransportId that = (TransportId) o; |
| 31 | return Objects.equals(taskid, that.taskid) && Objects.equals(uploaduserid, that.uploaduserid) && Objects.equals(downloaduserid, that.downloaduserid); |
| 32 | } |
| 33 | |
| 34 | @Override |
| 35 | public int hashCode() { |
| 36 | return Objects.hash(taskid, uploaduserid, downloaduserid); |
| 37 | } |
| 38 | } |