1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
package info.magnolia.imaging.operations.cropresize; |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
|
|
| 0% |
Uncovered Elements: 36 (36) |
Complexity: 13 |
Complexity Density: 0.81 |
|
41 |
|
public class CroppingInfo { |
42 |
|
private String configName; |
43 |
|
private Coords coords; |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
45 |
0 |
public CroppingInfo(String configName, Coords coords) {... |
46 |
0 |
this.configName = configName; |
47 |
0 |
this.coords = coords; |
48 |
|
} |
49 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
50 |
0 |
public CroppingInfo() {... |
51 |
|
} |
52 |
|
|
53 |
|
|
54 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
55 |
|
public String getConfigName() {... |
56 |
|
return configName; |
57 |
|
} |
58 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
59 |
|
public void setConfigName(String configName) {... |
60 |
|
this.configName = configName; |
61 |
|
} |
62 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
63 |
|
public Coords getCoords() {... |
64 |
|
return coords; |
65 |
|
} |
66 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
67 |
|
public void setCoords(Coords coords) {... |
68 |
|
this.coords = coords; |
69 |
|
} |
70 |
|
|
71 |
|
|
72 |
|
|
|
|
| 0% |
Uncovered Elements: 22 (22) |
Complexity: 8 |
Complexity Density: 0.8 |
|
73 |
0 |
@Override... |
74 |
|
public boolean equals(Object o) { |
75 |
0 |
if (this == o) { |
76 |
0 |
return true; |
77 |
|
} |
78 |
0 |
if (o == null || getClass() != o.getClass()) { |
79 |
0 |
return false; |
80 |
|
} |
81 |
|
|
82 |
0 |
CroppingInfo that = (CroppingInfo) o; |
83 |
|
|
84 |
0 |
if (configName != null ? !configName.equals(that.configName) : that.configName != null) { |
85 |
0 |
return false; |
86 |
|
} |
87 |
0 |
if (coords != null ? !coords.equals(that.coords) : that.coords != null) { |
88 |
0 |
return false; |
89 |
|
} |
90 |
|
|
91 |
0 |
return true; |
92 |
|
} |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
94 |
0 |
@Override... |
95 |
|
public int hashCode() { |
96 |
0 |
int result; |
97 |
0 |
result = (configName != null ? configName.hashCode() : 0); |
98 |
0 |
result = 31 * result + (coords != null ? coords.hashCode() : 0); |
99 |
0 |
return result; |
100 |
|
} |
101 |
|
|
102 |
|
} |