Project

General

Profile

1 26600 sandro.lab
package eu.dnetlib.functionality.modular.ui.repositories.objects;
2
3
public class SimpleParamEntry implements Comparable<SimpleParamEntry> {
4
5
	private String id;
6
	private String name;
7
	private Object value;
8 29884 michele.ar
	private Object otherValue;
9 26600 sandro.lab
10
	public SimpleParamEntry(final String name, final Object value) {
11 29884 michele.ar
		this(name, name, value, null);
12 26600 sandro.lab
	}
13
14
	public SimpleParamEntry(final String id, final String name, final Object value) {
15 29884 michele.ar
		this(id, name, value, null);
16
	}
17
18
	public SimpleParamEntry(final String id, final String name, final Object value, final Object otherValue) {
19 26600 sandro.lab
		this.id = id;
20
		this.name = name;
21
		this.value = value;
22 29884 michele.ar
		this.setOtherValue(otherValue);
23 26600 sandro.lab
	}
24
25
	public String getId() {
26
		return id;
27
	}
28
29
	public void setId(final String id) {
30
		this.id = id;
31
	}
32
33
	public Object getValue() {
34
		return value;
35
	}
36
37
	public void setValue(final Object value) {
38
		this.value = value;
39
	}
40
41
	public String getName() {
42
		return name;
43
	}
44
45
	public void setName(final String name) {
46
		this.name = name;
47
	}
48
49 29884 michele.ar
50
	public Object getOtherValue() {
51
		return otherValue;
52
	}
53
54
	public void setOtherValue(Object otherValue) {
55
		this.otherValue = otherValue;
56
	}
57
58 26600 sandro.lab
	@Override
59
	public int compareTo(final SimpleParamEntry o) {
60
		return getName().compareTo(o.getName());
61
	}
62
}