Project

General

Profile

1
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
	private Object otherValue;
9

    
10
	public SimpleParamEntry(final String name, final Object value) {
11
		this(name, name, value, null);
12
	}
13

    
14
	public SimpleParamEntry(final String id, final String name, final Object value) {
15
		this(id, name, value, null);
16
	}
17
	
18
	public SimpleParamEntry(final String id, final String name, final Object value, final Object otherValue) {
19
		this.id = id;
20
		this.name = name;
21
		this.value = value;
22
		this.setOtherValue(otherValue);
23
	}
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

    
50
	public Object getOtherValue() {
51
		return otherValue;
52
	}
53

    
54
	public void setOtherValue(Object otherValue) {
55
		this.otherValue = otherValue;
56
	}
57

    
58
	@Override
59
	public int compareTo(final SimpleParamEntry o) {
60
		return getName().compareTo(o.getName());
61
	}
62
}
(3-3/4)