1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.doc.rcs; |
21 |
|
|
22 |
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
23 |
|
|
24 |
|
import com.xpn.xwiki.util.AbstractSimpleClass; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@version |
30 |
|
@since |
31 |
|
|
|
|
| 86.7% |
Uncovered Elements: 2 (15) |
Complexity: 8 |
Complexity Density: 1.14 |
|
32 |
|
public class XWikiRCSNodeContent extends AbstractSimpleClass |
33 |
|
implements Comparable<XWikiRCSNodeContent> |
34 |
|
{ |
35 |
|
|
36 |
|
private XWikiRCSNodeId id; |
37 |
|
|
38 |
|
|
39 |
|
private XWikiPatch patch; |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
44 |
5752 |
public XWikiRCSNodeContent()... |
45 |
|
{ |
46 |
|
} |
47 |
|
|
48 |
|
|
49 |
|
@param |
50 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
825 |
public XWikiRCSNodeContent(XWikiRCSNodeId id)... |
52 |
|
{ |
53 |
825 |
setId((XWikiRCSNodeId) id.clone()); |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
|
@return |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
25361 |
public XWikiRCSNodeId getId()... |
60 |
|
{ |
61 |
25361 |
return this.id; |
62 |
|
} |
63 |
|
|
64 |
|
|
65 |
|
@param |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
7784 |
public void setId(XWikiRCSNodeId id)... |
68 |
|
{ |
69 |
|
|
70 |
7784 |
this.id = (XWikiRCSNodeId) id.clone(); |
71 |
|
} |
72 |
|
|
73 |
|
|
74 |
|
@return |
75 |
|
@see |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
19652 |
public XWikiPatch getPatch()... |
78 |
|
{ |
79 |
19652 |
return this.patch; |
80 |
|
} |
81 |
|
|
82 |
|
|
83 |
|
@param |
84 |
|
@see |
85 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
86 |
6577 |
public void setPatch(XWikiPatch patch)... |
87 |
|
{ |
88 |
6577 |
this.patch = patch; |
89 |
|
} |
90 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
0 |
@Override... |
92 |
|
public String toString() |
93 |
|
{ |
94 |
0 |
return new ToStringBuilder(this) |
95 |
|
.append("id", getId()) |
96 |
|
.toString(); |
97 |
|
} |
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
6313 |
@Override... |
100 |
|
public int compareTo(XWikiRCSNodeContent o) |
101 |
|
{ |
102 |
6313 |
return getId().getVersion().compareTo(o.getId().getVersion()); |
103 |
|
} |
104 |
|
} |