1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.criteria.impl; |
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
|
|
| 71.4% |
Uncovered Elements: 4 (14) |
Complexity: 7 |
Complexity Density: 1 |
|
28 |
|
public class Duration |
29 |
|
{ |
30 |
|
private org.joda.time.Period span; |
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
@param |
36 |
|
@param |
37 |
|
@param |
38 |
|
@param |
39 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
24 |
public Duration(int years, int months, int weeks, int days)... |
41 |
|
{ |
42 |
24 |
this.span = new org.joda.time.Period(years, months, weeks, days, 0, 0, 0, 0); |
43 |
|
} |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
@param |
49 |
|
@param |
50 |
|
@param |
51 |
|
@param |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0 |
public Duration(int years, int months, int weeks, int days, int hours)... |
54 |
|
{ |
55 |
0 |
this.span = new org.joda.time.Period(years, months, weeks, days, hours, 0, 0, 0); |
56 |
|
} |
57 |
|
|
58 |
|
|
59 |
|
@return |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
24 |
public int getYears()... |
62 |
|
{ |
63 |
24 |
return this.span.getYears(); |
64 |
|
} |
65 |
|
|
66 |
|
|
67 |
|
@return |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
24 |
public int getMonths()... |
70 |
|
{ |
71 |
24 |
return this.span.getMonths(); |
72 |
|
} |
73 |
|
|
74 |
|
|
75 |
|
@return |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
24 |
public int getWeeks()... |
78 |
|
{ |
79 |
24 |
return this.span.getWeeks(); |
80 |
|
} |
81 |
|
|
82 |
|
|
83 |
|
@return |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
24 |
public int getDays()... |
86 |
|
{ |
87 |
24 |
return this.span.getDays(); |
88 |
|
} |
89 |
|
|
90 |
|
|
91 |
|
@return |
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0 |
public int getHours()... |
94 |
|
{ |
95 |
0 |
return this.span.getHours(); |
96 |
|
} |
97 |
|
} |