()
| 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 | } |
no outgoing calls
no test coverage detected