forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFrequencyQuantifier.java
More file actions
135 lines (120 loc) · 3.56 KB
/
FrequencyQuantifier.java
File metadata and controls
135 lines (120 loc) · 3.56 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
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;
/**
* FrequencyQuantifier
* <p>
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"has_count",
"has_percentage",
"has_quotient",
"has_total"
})
public class FrequencyQuantifier {
/**
* number of things with a particular property
*
*/
@JsonProperty("has_count")
@JsonPropertyDescription("number of things with a particular property")
private String hasCount;
/**
* equivalent to has quotient multiplied by 100
*
*/
@JsonProperty("has_percentage")
@JsonPropertyDescription("equivalent to has quotient multiplied by 100")
private String hasPercentage;
@JsonProperty("has_quotient")
private String hasQuotient;
/**
* total number of things in a particular reference set
*
*/
@JsonProperty("has_total")
@JsonPropertyDescription("total number of things in a particular reference set")
private String hasTotal;
/**
* number of things with a particular property
*
*/
@JsonProperty("has_count")
public String getHasCount() {
return hasCount;
}
/**
* number of things with a particular property
*
*/
@JsonProperty("has_count")
public void setHasCount(String hasCount) {
this.hasCount = hasCount;
}
/**
* equivalent to has quotient multiplied by 100
*
*/
@JsonProperty("has_percentage")
public String getHasPercentage() {
return hasPercentage;
}
/**
* equivalent to has quotient multiplied by 100
*
*/
@JsonProperty("has_percentage")
public void setHasPercentage(String hasPercentage) {
this.hasPercentage = hasPercentage;
}
@JsonProperty("has_quotient")
public String getHasQuotient() {
return hasQuotient;
}
@JsonProperty("has_quotient")
public void setHasQuotient(String hasQuotient) {
this.hasQuotient = hasQuotient;
}
/**
* total number of things in a particular reference set
*
*/
@JsonProperty("has_total")
public String getHasTotal() {
return hasTotal;
}
/**
* total number of things in a particular reference set
*
*/
@JsonProperty("has_total")
public void setHasTotal(String hasTotal) {
this.hasTotal = hasTotal;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("hasCount", hasCount).append("hasPercentage", hasPercentage).append("hasQuotient", hasQuotient).append("hasTotal", hasTotal).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(hasPercentage).append(hasCount).append(hasQuotient).append(hasTotal).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof FrequencyQuantifier) == false) {
return false;
}
FrequencyQuantifier rhs = ((FrequencyQuantifier) other);
return new EqualsBuilder().append(hasPercentage, rhs.hasPercentage).append(hasCount, rhs.hasCount).append(hasQuotient, rhs.hasQuotient).append(hasTotal, rhs.hasTotal).isEquals();
}
}