1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.owasp.dependencycheck.xml.pom;
19
20 import java.io.Serializable;
21 import java.util.Objects;
22 import javax.annotation.concurrent.ThreadSafe;
23
24
25
26
27
28
29 @ThreadSafe
30 public class Developer implements Serializable {
31
32
33
34
35 private static final long serialVersionUID = 7016253914202775026L;
36
37
38
39
40 private String id;
41
42
43
44 private String name;
45
46
47
48 private String email;
49
50
51
52 private String organization;
53
54
55
56 private String organizationUrl;
57
58
59
60
61
62
63 public String getId() {
64 return id;
65 }
66
67
68
69
70
71
72 public void setId(String id) {
73 this.id = id;
74 }
75
76
77
78
79
80
81 public String getName() {
82 return name;
83 }
84
85
86
87
88
89
90 public void setName(String name) {
91 this.name = name;
92 }
93
94
95
96
97
98
99 public String getEmail() {
100 return email;
101 }
102
103
104
105
106
107
108 public void setEmail(String email) {
109 this.email = email;
110 }
111
112
113
114
115
116
117 public String getOrganization() {
118 return organization;
119 }
120
121
122
123
124
125
126 public void setOrganization(String organization) {
127 this.organization = organization;
128 }
129
130
131
132
133
134
135 public String getOrganizationUrl() {
136 return organizationUrl;
137 }
138
139
140
141
142
143
144 public void setOrganizationUrl(String organizationUrl) {
145 this.organizationUrl = organizationUrl;
146 }
147
148 @Override
149 public int hashCode() {
150 int hash = 3;
151 hash = 61 * hash + Objects.hashCode(this.id);
152 hash = 61 * hash + Objects.hashCode(this.name);
153 hash = 61 * hash + Objects.hashCode(this.email);
154 hash = 61 * hash + Objects.hashCode(this.organization);
155 hash = 61 * hash + Objects.hashCode(this.organizationUrl);
156 return hash;
157 }
158
159 @Override
160 public boolean equals(Object obj) {
161 if (this == obj) {
162 return true;
163 }
164 if (obj == null) {
165 return false;
166 }
167 if (getClass() != obj.getClass()) {
168 return false;
169 }
170 final Developer other = (Developer) obj;
171 if (!Objects.equals(this.id, other.id)) {
172 return false;
173 }
174 if (!Objects.equals(this.name, other.name)) {
175 return false;
176 }
177 if (!Objects.equals(this.email, other.email)) {
178 return false;
179 }
180 if (!Objects.equals(this.organization, other.organization)) {
181 return false;
182 }
183
184 if (!Objects.equals(this.organizationUrl, other.organizationUrl)) {
185 return false;
186 }
187 return true;
188 }
189
190 @Override
191 public String toString() {
192 return "Developer{"
193 + "id=" + id
194 + ", name=" + name
195 + ", email=" + email
196 + ", organization=" + organization
197 + ", organizationUrl=" + organizationUrl + '}';
198 }
199
200 }