Project

General

Profile

1
package eu.dnetlib.repo.manager.domain.broker;
2

    
3
/**
4
 * Created by stefanos on 26/10/2016.
5
 */
6
public class BrowseEntry implements Comparable<BrowseEntry>{
7

    
8
    private String value;
9
    private Long size;
10

    
11
    public BrowseEntry() {
12
    }
13

    
14
    public BrowseEntry(final String value, final Long size) {
15
        this.value = value;
16
        this.size = size;
17
    }
18

    
19
    public String getValue() {
20
        return value;
21
    }
22

    
23
    public void setValue(String value) {
24
        this.value = value;
25
    }
26

    
27
    public Long getSize() {
28
        return size;
29
    }
30

    
31
    public void setSize(Long size) {
32
        this.size = size;
33
    }
34

    
35
    @Override
36
    public int compareTo(final BrowseEntry bv) {
37
        return Long.compare(getSize(), bv.getSize());
38
    }
39

    
40
}
(2-2/14)