1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.qedeq.kernel.se.dto.module; |
17 |
|
|
18 |
|
import org.qedeq.base.utility.EqualsUtility; |
19 |
|
import org.qedeq.kernel.se.base.module.LatexList; |
20 |
|
import org.qedeq.kernel.se.base.module.LiteratureItem; |
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@author |
27 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (27) |
Complexity: 11 |
Complexity Density: 0.85 |
|
28 |
|
public class LiteratureItemVo implements LiteratureItem { |
29 |
|
|
30 |
|
|
31 |
|
private String label; |
32 |
|
|
33 |
|
|
34 |
|
private LatexList item; |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
39 |
57
|
public LiteratureItemVo() {... |
40 |
|
|
41 |
|
} |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
@param |
47 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
41
|
public final void setLabel(final String label) {... |
49 |
41
|
this.label = label; |
50 |
|
} |
51 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
245
|
public final String getLabel() {... |
53 |
245
|
return label; |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
@param |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
43
|
public final void setItem(final LatexListVo item) {... |
62 |
43
|
this.item = item; |
63 |
|
} |
64 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
296
|
public final LatexList getItem() {... |
66 |
296
|
return item; |
67 |
|
} |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
69 |
57
|
public boolean equals(final Object obj) {... |
70 |
57
|
if (!(obj instanceof LiteratureItemVo)) { |
71 |
5
|
return false; |
72 |
|
} |
73 |
52
|
final LiteratureItemVo other = (LiteratureItemVo) obj; |
74 |
52
|
return EqualsUtility.equals(getLabel(), other.getLabel()) |
75 |
|
&& EqualsUtility.equals(getItem(), other.getItem()); |
76 |
|
} |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 3 |
Complexity Density: 3 |
|
78 |
77
|
public int hashCode() {... |
79 |
77
|
return (getLabel() != null ? getLabel().hashCode() : 0) |
80 |
77
|
^ (getItem() != null ? 3 ^ getItem().hashCode() : 0); |
81 |
|
} |
82 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
83 |
64
|
public String toString() {... |
84 |
64
|
final StringBuffer buffer = new StringBuffer(); |
85 |
64
|
buffer.append("Item label: " + label + "\n"); |
86 |
64
|
buffer.append(getItem() + "\n"); |
87 |
64
|
return buffer.toString(); |
88 |
|
} |
89 |
|
|
90 |
|
} |