blob: f79962fa57479491b8f0157a4bb97af273421d14 [file] [log] [blame]
rootff0769a2025-05-18 17:24:41 +00001package entity;
root927f1532025-05-09 05:33:32 +00002
3import java.io.Serializable;
4import java.util.Objects;
5
6public 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}