forked from jenkinsci/java-client-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArtifact.java
More file actions
75 lines (59 loc) · 2.04 KB
/
Artifact.java
File metadata and controls
75 lines (59 loc) · 2.04 KB
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
/*
* Copyright (c) 2013 Cosmin Stejerean, Karl Heinz Marbaise, and contributors.
*
* Distributed under the MIT license: http://opensource.org/licenses/MIT
*/
package com.offbytwo.jenkins.model;
public class Artifact extends BaseModel {
private String displayPath;
private String fileName;
private String relativePath;
private BuildWithDetails buildWithDetails;
public String getDisplayPath() {
return displayPath;
}
public void setDisplayPath(String displayPath) {
this.displayPath = displayPath;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getRelativePath() {
return relativePath;
}
public void setRelativePath(String relativePath) {
this.relativePath = relativePath;
}
public Artifact setBuildWithDetails(BuildWithDetails buildWithDetails) {
this.buildWithDetails = buildWithDetails;
return this;
}
public BuildWithDetails getBuildWithDetails() {
return buildWithDetails;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
Artifact artifact = (Artifact) o;
if (displayPath != null ? !displayPath.equals(artifact.displayPath) : artifact.displayPath != null)
return false;
if (fileName != null ? !fileName.equals(artifact.fileName) : artifact.fileName != null)
return false;
if (relativePath != null ? !relativePath.equals(artifact.relativePath) : artifact.relativePath != null)
return false;
return true;
}
@Override
public int hashCode() {
int result = displayPath != null ? displayPath.hashCode() : 0;
result = 31 * result + (fileName != null ? fileName.hashCode() : 0);
result = 31 * result + (relativePath != null ? relativePath.hashCode() : 0);
return result;
}
}