-
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathDiffResult.java
More file actions
34 lines (26 loc) · 711 Bytes
/
DiffResult.java
File metadata and controls
34 lines (26 loc) · 711 Bytes
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 org.herb;
import java.util.List;
public class DiffResult {
private final boolean identical;
private final List<DiffOperation> operations;
public DiffResult(boolean identical, List<DiffOperation> operations) {
this.identical = identical;
this.operations = operations;
}
public boolean isIdentical() {
return identical;
}
public List<DiffOperation> getOperations() {
return operations;
}
public int getOperationCount() {
return operations.size();
}
@Override
public String toString() {
if (identical) {
return "DiffResult{identical=true}";
}
return String.format("DiffResult{identical=false, operations=%d}", operations.size());
}
}