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.Import; |
20 |
|
import org.qedeq.kernel.se.base.module.Specification; |
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@author |
27 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (27) |
Complexity: 12 |
Complexity Density: 1 |
|
28 |
|
public class ImportVo implements Import { |
29 |
|
|
30 |
|
|
31 |
|
private String label; |
32 |
|
|
33 |
|
|
34 |
|
private Specification specification; |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
@param |
40 |
|
|
41 |
|
@param |
42 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
43 |
1
|
public ImportVo(final String label, final SpecificationVo specification) {... |
44 |
1
|
this.label = label; |
45 |
1
|
this.specification = specification; |
46 |
|
} |
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
51 |
72
|
public ImportVo() {... |
52 |
|
|
53 |
|
} |
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
@param |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
55
|
public final void setLabel(final String label) {... |
62 |
55
|
this.label = label; |
63 |
|
} |
64 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
440
|
public final String getLabel() {... |
66 |
440
|
return label; |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
@param |
73 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
58
|
public final void setSpecification(final SpecificationVo specification) {... |
75 |
58
|
this.specification = specification; |
76 |
|
} |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
449
|
public final Specification getSpecification() {... |
79 |
449
|
return specification; |
80 |
|
} |
81 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
82 |
104
|
public boolean equals(final Object obj) {... |
83 |
104
|
if (!(obj instanceof ImportVo)) { |
84 |
5
|
return false; |
85 |
|
} |
86 |
99
|
final ImportVo other = (ImportVo) obj; |
87 |
99
|
return EqualsUtility.equals(getLabel(), other.getLabel()) |
88 |
|
&& EqualsUtility.equals(getSpecification(), other.getSpecification()); |
89 |
|
} |
90 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 3 |
Complexity Density: 3 |
|
91 |
130
|
public int hashCode() {... |
92 |
130
|
return (getLabel() != null ? getLabel().hashCode() : 0) |
93 |
130
|
^ (getSpecification() != null ? 1 ^ getSpecification().hashCode() : 0); |
94 |
|
} |
95 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
89
|
public String toString() {... |
97 |
89
|
return label + ":" + specification; |
98 |
|
} |
99 |
|
|
100 |
|
} |