Project

General

Profile

« Previous | Next » 

Revision 32557

removed lombok

View differences:

Category.java
3 3
import java.util.ArrayList;
4 4
import java.util.List;
5 5

  
6
import lombok.AllArgsConstructor;
7
import lombok.Data;
8
import lombok.NoArgsConstructor;
6
public class Category implements Comparable<Category> {
9 7

  
10
@Data
11
@AllArgsConstructor
12
@NoArgsConstructor
13
public class Category implements Comparable<Category> {
14 8
	private String id;
15 9
	private String label;
16 10
	private String claim;
17 11
	private List<Concept> concepts = new ArrayList<Concept>();
18
	
12

  
13
	public Category() {}
14

  
15
	public Category(final String id, final String label, final String claim, final List<Concept> concepts) {
16
		super();
17
		this.id = id;
18
		this.label = label;
19
		this.claim = claim;
20
		this.concepts = concepts;
21
	}
22

  
19 23
	@Override
20
	public int compareTo(Category o) {
24
	public int compareTo(final Category o) {
21 25
		return label.compareTo(o.getLabel());
22 26
	}
23
	
27

  
28
	public String getId() {
29
		return id;
30
	}
31

  
32
	public void setId(final String id) {
33
		this.id = id;
34
	}
35

  
36
	public String getLabel() {
37
		return label;
38
	}
39

  
40
	public void setLabel(final String label) {
41
		this.label = label;
42
	}
43

  
44
	public String getClaim() {
45
		return claim;
46
	}
47

  
48
	public void setClaim(final String claim) {
49
		this.claim = claim;
50
	}
51

  
52
	public List<Concept> getConcepts() {
53
		return concepts;
54
	}
55

  
56
	public void setConcepts(final List<Concept> concepts) {
57
		this.concepts = concepts;
58
	}
59

  
24 60
}

Also available in: Unified diff