public interface DiffEngine extends DiffAlgorithm
Modifier and Type | Interface and Description |
---|---|
static class |
DiffEngine.DiffLine
Represents a line computed by the DiffEngine.
|
Modifier and Type | Field and Description |
---|---|
static char |
DELETED
Represents a deleted line.
|
static char |
NEW
Represents a new line.
|
static char |
UNCHANGED
Represents an unchanged line.
|
static char |
UPDATED
Represents an updated line.
|
TYPE_FULL_LINES, TYPE_WITHIN_LINES_BASIC, TYPE_WITHIN_LINES_DIFF
Modifier and Type | Method and Description |
---|---|
default DiffBase |
createDiffResult()
Create the diff rsult.
|
short |
getDiffAlgorithm()
Return the diff algorithm
|
java.util.List<java.lang.String> |
getLeftText()
Return the left text.
|
default int |
getNewLine(int first,
int last) |
java.util.List<java.lang.String> |
getRightText()
Return the right text.
|
default DiffBase |
populate()
Populate the diff.
|
void |
populate(DiffBase diffbase)
Populate the content of the diff.
|
void |
setDiffAlgorithm(short diffAlgorithm)
Set the diff algorithm.
|
static final char UNCHANGED
static final char UPDATED
static final char NEW
static final char DELETED
void setDiffAlgorithm(short diffAlgorithm)
diffAlgorithm
- the diff algorithmshort getDiffAlgorithm()
java.util.List<java.lang.String> getLeftText()
java.util.List<java.lang.String> getRightText()
default DiffBase createDiffResult()
default DiffBase populate()
void populate(DiffBase diffbase)
diffbase
- the DiffBasedefault int getNewLine(int first, int last)
Copyright © 2016, 2017, 2018, 2019, 2023 Herve Girod. All Rights Reserved. Documentation and source under the MIT licence