forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHaplotype.java
43 lines (35 loc) · 995 Bytes
/
Haplotype.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
import com.fasterxml.jackson.annotation.JsonInclude;
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;
/**
* Haplotype
* <p>
* A set of zero or more Alleles on a single instance of a Sequence[VMC]
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
})
public class Haplotype {
@Override
public String toString() {
return new ToStringBuilder(this).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Haplotype) == false) {
return false;
}
Haplotype rhs = ((Haplotype) other);
return new EqualsBuilder().isEquals();
}
}