Project

General

Profile

1
package eu.dnetlib.functionality.modular.ui.vocabularies.model;
2

    
3
public class Relation implements Comparable<Relation> {
4

    
5
	private String type;
6
	private String code;
7

    
8
	public Relation() {}
9

    
10
	public Relation(final String type, final String code) {
11
		super();
12
		this.type = type;
13
		this.code = code;
14
	}
15

    
16
	public String getType() {
17
		return type;
18
	}
19

    
20
	public void setType(final String type) {
21
		this.type = type;
22
	}
23

    
24
	@Override
25
	public int compareTo(final Relation o) {
26
		return code.compareTo(o.getCode());
27
	}
28

    
29
	public String getCode() {
30
		return code;
31
	}
32

    
33
	public void setCode(final String code) {
34
		this.code = code;
35
	}
36
}
(1-1/4)