1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.qedeq.kernel.bo.logic.common; |
17 |
|
|
18 |
|
import org.qedeq.base.utility.EqualsUtility; |
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
@link |
24 |
|
@link |
25 |
|
|
26 |
|
@author |
27 |
|
|
|
|
| 46.7% |
Uncovered Elements: 8 (15) |
Complexity: 6 |
Complexity Density: 0.75 |
|
28 |
|
public class SubjectVariable { |
29 |
|
|
30 |
|
|
31 |
|
private final String name; |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
@param |
37 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
795590
|
public SubjectVariable(final String name) {... |
39 |
795590
|
this.name = name; |
40 |
|
} |
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
@return |
46 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
0
|
public String getName() {... |
48 |
0
|
return name; |
49 |
|
} |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
public int hashCode() {... |
52 |
0
|
return name.hashCode(); |
53 |
|
} |
54 |
|
|
|
|
| 66.7% |
Uncovered Elements: 2 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
55 |
1288559
|
public boolean equals(final Object other) {... |
56 |
1288559
|
if (!(other instanceof SubjectVariable)) { |
57 |
0
|
return false; |
58 |
|
} |
59 |
1288559
|
final SubjectVariable var = (SubjectVariable) other; |
60 |
1288559
|
return EqualsUtility.equals(name, var.name); |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0
|
public String toString() {... |
64 |
0
|
return name; |
65 |
|
} |
66 |
|
|
67 |
|
} |