| Modifier and Type | Field and Description |
|---|---|
| private static final java. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | getDeltaText(Consumer<String>
consumer for the list of String lines of code writer, AbstractDelta<String> the Delta to output delta)getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter. |
| private static void | processDeltas(Consumer<String> writer, List<String> origLines, List<AbstractDelta<String>> deltas, int contextSize, boolean newFile)
|
| public static void | |
| public static void | |
| private static void |
| LOG | back to summary |
|---|---|
| private static final java. | |
| UnifiedDiffWriter | back to summary |
|---|---|
| public UnifiedDiffWriter() | |
| getDeltaText | back to summary |
|---|---|
| private static void getDeltaText(Consumer<String> writer, AbstractDelta<String> delta) getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter.
| |
| processDeltas | back to summary |
|---|---|
| private static void processDeltas(Consumer<String> writer, List<String> origLines, List<AbstractDelta<String>> deltas, int contextSize, boolean newFile) | |
| write | back to summary |
|---|---|
| public static void write(UnifiedDiff diff, Function<String, List<String>> originalLinesProvider, Writer writer, int contextSize) throws IOException | |
| write | back to summary |
|---|---|
| public static void write(UnifiedDiff diff, Function<String, List<String>> originalLinesProvider, Consumer<String> writer, int contextSize) throws IOException | |
| writeOrNothing | back to summary |
|---|---|
| private static void writeOrNothing(Consumer<String> writer, String str) throws IOException | |