public final class UnifiedDiff extends Object
Constructor and Description |
---|
UnifiedDiff() |
Modifier and Type | Method and Description |
---|---|
static UnifiedDiff |
from(String header,
String tail,
UnifiedDiffFile... files) |
List<UnifiedDiffFile> |
getFiles() |
String |
getHeader() |
String |
getTail() |
void |
setHeader(String header) |
List<String> |
spplyPatchTo(Predicate<String> findFile,
List<String> originalLines) |
public String getHeader()
public void setHeader(String header)
public List<UnifiedDiffFile> getFiles()
public String getTail()
public List<String> spplyPatchTo(Predicate<String> findFile, List<String> originalLines) throws PatchFailedException
PatchFailedException
public static UnifiedDiff from(String header, String tail, UnifiedDiffFile... files)
Copyright © 2009–2020 java-diff-utils. All rights reserved.