Project

General

Profile

1 57130 michele.ar
package eu.dnetlib.organizations.utils;
2
3
public enum RelationType {
4
	Child, Parent, Related, Other;
5
6
	public RelationType getInverse() {
7
		switch (this) {
8
		case Child:
9
			return Parent;
10
		case Parent:
11
			return Child;
12
		case Related:
13
			return Related;
14
		default:
15
			return Other;
16
		}
17
	}
18
}