1
|
package eu.dnetlib.clients.dsManager;
|
2
|
|
3
|
public class BrowseTerm implements Comparable<BrowseTerm> {
|
4
|
|
5
|
private final String id;
|
6
|
private final String name;
|
7
|
private final int value;
|
8
|
|
9
|
public BrowseTerm(final String id, final String name, final int value) {
|
10
|
this.id = id;
|
11
|
this.name = name;
|
12
|
this.value = value;
|
13
|
}
|
14
|
|
15
|
public String getId() {
|
16
|
return id;
|
17
|
}
|
18
|
|
19
|
public int getValue() {
|
20
|
return value;
|
21
|
}
|
22
|
|
23
|
public String getName() {
|
24
|
return name;
|
25
|
}
|
26
|
|
27
|
@Override
|
28
|
public int compareTo(final BrowseTerm o) {
|
29
|
return Integer.compare(value, o.getValue());
|
30
|
}
|
31
|
}
|