forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDataSetVersion.java
More file actions
108 lines (91 loc) · 2.84 KB
/
DataSetVersion.java
File metadata and controls
108 lines (91 loc) · 2.84 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* DataSetVersion
* <p>
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"distribution",
"source_data_file",
"title",
"type",
"versionOf"
})
public class DataSetVersion {
@JsonProperty("distribution")
private String distribution;
@JsonProperty("source_data_file")
private String sourceDataFile;
@JsonProperty("title")
private String title;
@JsonProperty("type")
private String type;
@JsonProperty("versionOf")
private String versionOf;
@JsonProperty("distribution")
public String getDistribution() {
return distribution;
}
@JsonProperty("distribution")
public void setDistribution(String distribution) {
this.distribution = distribution;
}
@JsonProperty("source_data_file")
public String getSourceDataFile() {
return sourceDataFile;
}
@JsonProperty("source_data_file")
public void setSourceDataFile(String sourceDataFile) {
this.sourceDataFile = sourceDataFile;
}
@JsonProperty("title")
public String getTitle() {
return title;
}
@JsonProperty("title")
public void setTitle(String title) {
this.title = title;
}
@JsonProperty("type")
public String getType() {
return type;
}
@JsonProperty("type")
public void setType(String type) {
this.type = type;
}
@JsonProperty("versionOf")
public String getVersionOf() {
return versionOf;
}
@JsonProperty("versionOf")
public void setVersionOf(String versionOf) {
this.versionOf = versionOf;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("distribution", distribution).append("sourceDataFile", sourceDataFile).append("title", title).append("type", type).append("versionOf", versionOf).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(distribution).append(title).append(type).append(versionOf).append(sourceDataFile).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DataSetVersion) == false) {
return false;
}
DataSetVersion rhs = ((DataSetVersion) other);
return new EqualsBuilder().append(distribution, rhs.distribution).append(title, rhs.title).append(type, rhs.type).append(versionOf, rhs.versionOf).append(sourceDataFile, rhs.sourceDataFile).isEquals();
}
}