MCPcopy Create free account
hub / github.com/ReZeroS/git / toString

Method toString

src/main/java/club/qqtim/diff/LineObject.java:47–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 @Override
48 public String toString() {
49 String actionTxt = ConstantVal.EMPTY;
50 if (ConstantVal.SYNC.equals(this.action)) {
51 actionTxt = ConstantVal.SINGLE_SPACE;
52 }
53 if (ConstantVal.PLUS.equals(this.action)) {
54 actionTxt = ConstantVal.PLUS_SYMBOL;
55 }
56 if (ConstantVal.MINUS.equals(this.action)) {
57 actionTxt = ConstantVal.MINUS_SYMBOL;
58 }
59 // action index
60 return actionTxt + ConstantVal.SINGLE_SPACE
61 + (Objects.isNull(index)? ConstantVal.EMPTY: index)
62 + (ConstantVal.SYNC.equals(this.action) ? String.format("[%d]", anotherIndex): ConstantVal.EMPTY)
63 + ConstantVal.SINGLE_SPACE + lineContent;
64 }
65
66
67}

Callers 15

getWorkingTreeMethod · 0.45
iteratorBranchNamesMethod · 0.45
addFilesMethod · 0.45
addDirectoryMethod · 0.45
fetchMethod · 0.45
hashObjectMethod · 0.45
callMethod · 0.45
runMethod · 0.45
executeMethod · 0.45
objectExistsMethod · 0.45
iteratorRefsMethod · 0.45
getBranchNameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected