forked from RihanKh/OSAandSAST
-
Notifications
You must be signed in to change notification settings - Fork 2
/
WorkItemV2.java
97 lines (77 loc) · 2.51 KB
/
WorkItemV2.java
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
86
87
88
89
90
91
92
93
94
95
96
97
package com.cx.automation.installation.old.tfsManagment.dto;
/**
* Created by: iland.
* Date: 3/2/2017.
*/
public class WorkItemV2 {
private Integer id = null;
private String title = null;
private String type = null;
private String state = null;
private String assignedTo = null;
public WorkItemV2() {
}
public WorkItemV2(Integer id, String title, String type, String state, String assignedTo) {
this.id = id;
this.title = title;
this.type = type;
this.state = state;
this.assignedTo = assignedTo;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getAssignedTo() {
return assignedTo;
}
public void setAssignedTo(String assignedTo) {
this.assignedTo = assignedTo;
}
@Override
public String toString() {
return type + " "
+ "Id: " + id + " "
+ title;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
WorkItemV2 that = (WorkItemV2) o;
if (id != null ? !id.equals(that.id) : that.id != null) return false;
if (title != null ? !title.equals(that.title) : that.title != null) return false;
if (type != null ? !type.equals(that.type) : that.type != null) return false;
if (state != null ? !state.equals(that.state) : that.state != null) return false;
return assignedTo != null ? assignedTo.equals(that.assignedTo) : that.assignedTo == null;
}
@Override
public int hashCode() {
int result = id != null ? id.hashCode() : 0;
result = 31 * result + (title != null ? title.hashCode() : 0);
result = 31 * result + (type != null ? type.hashCode() : 0);
result = 31 * result + (state != null ? state.hashCode() : 0);
result = 31 * result + (assignedTo != null ? assignedTo.hashCode() : 0);
return result;
}
}