Project

General

Profile

1
package eu.dnetlib.data.db;
2

    
3
import java.util.Set;
4
import java.util.SortedMap;
5
import java.util.TreeMap;
6

    
7
public class Person {
8

    
9
	private String id;
10
	private String fullname;
11
	private SortedMap<Integer, Set<Group>> affiliations = new TreeMap<>();
12

    
13
	public Person() {}
14

    
15
	public Person(final String id, final String fullname) {
16
		this.id = id;
17
		this.fullname = fullname;
18
	}
19

    
20
	public String getId() {
21
		return id;
22
	}
23

    
24
	public void setId(final String id) {
25
		this.id = id;
26
	}
27

    
28
	public String getFullname() {
29
		return fullname;
30
	}
31

    
32
	protected void setFullname(final String fullname) {
33
		this.fullname = fullname;
34
	}
35

    
36
	public SortedMap<Integer, Set<Group>> getAffiliations() {
37
		return affiliations;
38
	}
39

    
40
	public void setAffiliations(final SortedMap<Integer, Set<Group>> affiliations) {
41
		this.affiliations = affiliations;
42
	}
43

    
44
	@Override
45
	public String toString() {
46
		return "Person [id=" + id + ", fullname=" + fullname + ", affiliations=" + affiliations + "]";
47
	}
48

    
49
}
(4-4/4)