1
|
package eu.dnetlib.repo.manager.service.shared.broker;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4
|
|
5
|
/**
|
6
|
* Created by stefanos on 26/10/2016.
|
7
|
*/
|
8
|
public class BrowseEntry implements Comparable<BrowseEntry>, IsSerializable{
|
9
|
|
10
|
public String value;
|
11
|
public Long size;
|
12
|
|
13
|
public BrowseEntry() {
|
14
|
}
|
15
|
|
16
|
public BrowseEntry(final String value, final Long size) {
|
17
|
this.value = value;
|
18
|
this.size = size;
|
19
|
}
|
20
|
|
21
|
public String getValue() {
|
22
|
return value;
|
23
|
}
|
24
|
|
25
|
public void setValue(String value) {
|
26
|
this.value = value;
|
27
|
}
|
28
|
|
29
|
public Long getSize() {
|
30
|
return size;
|
31
|
}
|
32
|
|
33
|
public void setSize(Long size) {
|
34
|
this.size = size;
|
35
|
}
|
36
|
|
37
|
@Override
|
38
|
public int compareTo(final BrowseEntry bv) {
|
39
|
return Long.compare(getSize(), bv.getSize());
|
40
|
}
|
41
|
|
42
|
}
|