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 |
|
|
|
|
| 60% |
Uncovered Elements: 6 (15) |
Complexity: 8 |
Complexity Density: 1.14 |
|
25 |
|
public class RangeFactory |
26 |
|
{ |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
public static final Range ALL = createRange(0, 0); |
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
public static final Range FIRST = createRange(0, 1); |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
public static final Range LAST = createRange(0, -1); |
41 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
42 |
7 |
public RangeFactory()... |
43 |
|
{ |
44 |
|
} |
45 |
|
|
46 |
|
|
47 |
|
@see |
48 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
33 |
public static Range createRange(int start, int size)... |
50 |
|
{ |
51 |
33 |
return new Range(start, size); |
52 |
|
} |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@return |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
14 |
public static Range createAllRange()... |
60 |
|
{ |
61 |
14 |
return new Range(0, 0); |
62 |
|
} |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
@param |
69 |
|
@return |
70 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
4 |
public static Range createHeadRange(int size)... |
72 |
|
{ |
73 |
4 |
return createRange(0, Math.abs(size)); |
74 |
|
} |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
@param |
81 |
|
@return |
82 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
4 |
public static Range createTailRange(int size)... |
84 |
|
{ |
85 |
4 |
return createRange(0, -Math.abs(size)); |
86 |
|
} |
87 |
|
|
88 |
|
|
89 |
|
@link |
90 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
0 |
public static Range getALL()... |
92 |
|
{ |
93 |
0 |
return ALL; |
94 |
|
} |
95 |
|
|
96 |
|
|
97 |
|
@link |
98 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
0 |
public static Range getFIRST()... |
100 |
|
{ |
101 |
0 |
return FIRST; |
102 |
|
} |
103 |
|
|
104 |
|
|
105 |
|
@link |
106 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
0 |
public static Range getLAST()... |
108 |
|
{ |
109 |
0 |
return LAST; |
110 |
|
} |
111 |
|
} |