forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BiolinkModel.java
48 lines (40 loc) · 1.03 KB
/
BiolinkModel.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
44
45
46
47
48
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Biolink-Model
* <p>
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
})
public class BiolinkModel {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(BiolinkModel.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof BiolinkModel) == false) {
return false;
}
BiolinkModel rhs = ((BiolinkModel) other);
return true;
}
}