MCPcopy Create free account
hub / github.com/LianjiaTech/json-diff / Result

Class Result

src/main/java/com/ke/diff/model/Result.java:10–71  ·  view source on GitHub ↗

diff比较最终结果 @Author JingWei @create 2022/3/2

Source from the content-addressed store, hash-verified

8 * @create 2022/3/2
9 */
10public class Result implements Serializable {
11 /**
12 * 第一个对象路径
13 */
14 private String leftPath;
15 /**
16 * 第二个对象路径
17 */
18 private String rightPath;
19 /**
20 * 第一个对象值
21 */
22 private Object left;
23 /**
24 * 第二个对象值
25 */
26 private Object right;
27 /**
28 * 比较结果
29 */
30 private String diffType;
31
32 public String getLeftPath() {
33 return leftPath;
34 }
35
36 public String getRightPath() {
37 return rightPath;
38 }
39
40 public void setLeftPath(String leftPath) {
41 this.leftPath = leftPath;
42 }
43
44 public void setRightPath(String rightPath) {
45 this.rightPath = rightPath;
46 }
47
48 public Object getLeft() {
49 return left;
50 }
51
52 public void setLeft(Object left) {
53 this.left = left;
54 }
55
56 public Object getRight() {
57 return right;
58 }
59
60 public void setRight(Object right) {
61 this.right = right;
62 }
63
64 public String getDiffType() {
65 return diffType;
66 }
67

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected