Skip navigation links
A B C D E F G H I J L M N O P R S T U V W 

A

AbstractDelta<T> - Class in com.github.difflib.patch
Abstract delta between a source and a target.
AbstractDelta(DeltaType, Chunk<T>, Chunk<T>) - Constructor for class com.github.difflib.patch.AbstractDelta
 
addDelta(AbstractDelta<T>) - Method in class com.github.difflib.patch.Patch
Add the given delta to this patch
applyTo(List<T>) - Method in class com.github.difflib.patch.AbstractDelta
 
applyTo(List<T>) - Method in class com.github.difflib.patch.ChangeDelta
 
applyTo(List<T>) - Method in class com.github.difflib.patch.DeleteDelta
 
applyTo(List<T>) - Method in class com.github.difflib.patch.EqualDelta
 
applyTo(List<T>) - Method in class com.github.difflib.patch.InsertDelta
 
applyTo(List<T>) - Method in class com.github.difflib.patch.Patch
Apply this patch to the given target

B

bootstrap - Variable in class com.github.difflib.algorithm.myers.PathNode
 
build() - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Build the DiffRowGenerator.

C

Change - Class in com.github.difflib.algorithm
 
Change(DeltaType, int, int, int, int) - Constructor for class com.github.difflib.algorithm.Change
 
ChangeDelta<T> - Class in com.github.difflib.patch
Describes the change-delta between original and revised texts.
ChangeDelta(Chunk<T>, Chunk<T>) - Constructor for class com.github.difflib.patch.ChangeDelta
Creates a change delta with the two given chunks.
Chunk<T> - Class in com.github.difflib.patch
Holds the information about the part of text involved in the diff process Text is represented as Object[] because the diff engine is capable of handling more than plain ascci.
Chunk(int, List<T>, List<Integer>) - Constructor for class com.github.difflib.patch.Chunk
Creates a chunk and saves a copy of affected lines
Chunk(int, List<T>) - Constructor for class com.github.difflib.patch.Chunk
Creates a chunk and saves a copy of affected lines
Chunk(int, T[], List<Integer>) - Constructor for class com.github.difflib.patch.Chunk
Creates a chunk and saves a copy of affected lines
Chunk(int, T[]) - Constructor for class com.github.difflib.patch.Chunk
Creates a chunk and saves a copy of affected lines
columnWidth(int) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Set the column width of generated lines of original and revised texts.
com.github.difflib - package com.github.difflib
 
com.github.difflib.algorithm - package com.github.difflib.algorithm
 
com.github.difflib.algorithm.myers - package com.github.difflib.algorithm.myers
 
com.github.difflib.patch - package com.github.difflib.patch
 
com.github.difflib.text - package com.github.difflib.text
 
com.github.difflib.unifieddiff - package com.github.difflib.unifieddiff
This is the first test version of a multifile diff parser.
computeDiff(List<T>, List<T>, DiffAlgorithmListener) - Method in interface com.github.difflib.algorithm.DiffAlgorithmI
Computes the changeset to patch the source list to the target list.
computeDiff(T[], T[], DiffAlgorithmListener) - Method in interface com.github.difflib.algorithm.DiffAlgorithmI
Simple extension to compute a changeset using arrays.
computeDiff(List<T>, List<T>, DiffAlgorithmListener) - Method in class com.github.difflib.algorithm.myers.MyersDiff
Computes the changeset to patch the source list to the target list.
create() - Static method in class com.github.difflib.text.DiffRowGenerator
 

D

DEFAULT_EQUALIZER - Static variable in class com.github.difflib.text.DiffRowGenerator
 
DeleteDelta<T> - Class in com.github.difflib.patch
Describes the delete-delta between original and revised texts.
DeleteDelta(Chunk<T>, Chunk<T>) - Constructor for class com.github.difflib.patch.DeleteDelta
Creates a change delta with the two given chunks.
deltaType - Variable in class com.github.difflib.algorithm.Change
 
DeltaType - Enum in com.github.difflib.patch
Specifies the type of the delta.
diff(List<T>, List<T>, DiffAlgorithmListener) - Static method in class com.github.difflib.DiffUtils
Computes the difference between the original and revised list of elements with default diff algorithm
diff(List<T>, List<T>) - Static method in class com.github.difflib.DiffUtils
 
diff(List<T>, List<T>, boolean) - Static method in class com.github.difflib.DiffUtils
 
diff(String, String, DiffAlgorithmListener) - Static method in class com.github.difflib.DiffUtils
Computes the difference between the original and revised text.
diff(List<T>, List<T>, BiPredicate<T, T>) - Static method in class com.github.difflib.DiffUtils
Computes the difference between the original and revised list of elements with default diff algorithm
diff(List<T>, List<T>, DiffAlgorithmI<T>, DiffAlgorithmListener) - Static method in class com.github.difflib.DiffUtils
 
diff(List<T>, List<T>, DiffAlgorithmI<T>, DiffAlgorithmListener, boolean) - Static method in class com.github.difflib.DiffUtils
Computes the difference between the original and revised list of elements with default diff algorithm
diff(List<T>, List<T>, DiffAlgorithmI<T>) - Static method in class com.github.difflib.DiffUtils
Computes the difference between the original and revised list of elements with default diff algorithm
DiffAlgorithmI<T> - Interface in com.github.difflib.algorithm
Interface of a diff algorithm.
DiffAlgorithmListener - Interface in com.github.difflib.algorithm
 
diffEnd() - Method in interface com.github.difflib.algorithm.DiffAlgorithmListener
 
DiffException - Exception in com.github.difflib.patch
Base class for all exceptions emanating from this package.
DiffException() - Constructor for exception com.github.difflib.patch.DiffException
 
DiffException(String) - Constructor for exception com.github.difflib.patch.DiffException
 
diffInline(String, String) - Static method in class com.github.difflib.DiffUtils
Computes the difference between the given texts inline.
DiffRow - Class in com.github.difflib.text
Describes the diff row in form [tag, oldLine, newLine) for showing the difference between two texts
DiffRow(DiffRow.Tag, String, String) - Constructor for class com.github.difflib.text.DiffRow
 
DiffRow.Tag - Enum in com.github.difflib.text
 
DiffRowGenerator - Class in com.github.difflib.text
This class for generating DiffRows for side-by-sidy view.
DiffRowGenerator.Builder - Class in com.github.difflib.text
This class used for building the DiffRowGenerator.
diffStart() - Method in interface com.github.difflib.algorithm.DiffAlgorithmListener
 
diffStep(int, int) - Method in interface com.github.difflib.algorithm.DiffAlgorithmListener
This is a step within the diff algorithm.
DiffUtils - Class in com.github.difflib
Implements the difference and patching engine

E

endOriginal - Variable in class com.github.difflib.algorithm.Change
 
endRevised - Variable in class com.github.difflib.algorithm.Change
 
EqualDelta<T> - Class in com.github.difflib.patch
This delta contains equal lines of data.
EqualDelta(Chunk<T>, Chunk<T>) - Constructor for class com.github.difflib.patch.EqualDelta
 
equalizer(BiPredicate<String, String>) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Provide an equalizer for diff processing.
equals(Object) - Method in class com.github.difflib.patch.AbstractDelta
 
equals(Object) - Method in class com.github.difflib.patch.Chunk
 
equals(Object) - Method in class com.github.difflib.text.DiffRow
 

F

from(String, String, UnifiedDiffFile...) - Static method in class com.github.difflib.unifieddiff.UnifiedDiff
 
from(String, String, Patch<String>) - Static method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 

G

generate(List<T>, List<T>, List<Change>) - Static method in class com.github.difflib.patch.Patch
 
generate(List<T>, List<T>, List<Change>, boolean) - Static method in class com.github.difflib.patch.Patch
 
generateDiffRows(List<String>, List<String>) - Method in class com.github.difflib.text.DiffRowGenerator
Get the DiffRows describing the difference between original and revised texts using the given patch.
generateDiffRows(List<String>, Patch<String>) - Method in class com.github.difflib.text.DiffRowGenerator
Generates the DiffRows describing the difference between original and revised texts using the given patch.
generateUnifiedDiff(String, String, List<String>, Patch<String>, int) - Static method in class com.github.difflib.UnifiedDiffUtils
generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format text representing the Patch.
getChangePosition() - Method in class com.github.difflib.patch.Chunk
 
getDeletedFileMode() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getDeltas() - Method in class com.github.difflib.patch.Patch
Get the list of computed deltas
getDiffCommand() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getFiles() - Method in class com.github.difflib.unifieddiff.UnifiedDiff
 
getFromFile() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getFromTimestamp() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getHeader() - Method in class com.github.difflib.unifieddiff.UnifiedDiff
 
getIndex() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getLines() - Method in class com.github.difflib.patch.Chunk
 
getNewFileMode() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getNewLine() - Method in class com.github.difflib.text.DiffRow
 
getOldLine() - Method in class com.github.difflib.text.DiffRow
 
getPatch() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getPosition() - Method in class com.github.difflib.patch.Chunk
 
getSource() - Method in class com.github.difflib.patch.AbstractDelta
 
getTag() - Method in class com.github.difflib.text.DiffRow
 
getTail() - Method in class com.github.difflib.unifieddiff.UnifiedDiff
 
getTarget() - Method in class com.github.difflib.patch.AbstractDelta
 
getToFile() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getToTimestamp() - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
getType() - Method in class com.github.difflib.patch.AbstractDelta
 

H

hashCode() - Method in class com.github.difflib.patch.AbstractDelta
 
hashCode() - Method in class com.github.difflib.patch.Chunk
 
hashCode() - Method in class com.github.difflib.text.DiffRow
 

I

i - Variable in class com.github.difflib.algorithm.myers.PathNode
Position in the original sequence.
IGNORE_WHITESPACE_EQUALIZER - Static variable in class com.github.difflib.text.DiffRowGenerator
 
ignoreWhiteSpaces(boolean) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Ignore white spaces in generating diff rows or not.
inlineDiffBySplitter(Function<String, List<String>>) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
To provide some customized splitting a splitter can be provided.
inlineDiffByWord(boolean) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Per default each character is separatly processed.
InsertDelta<T> - Class in com.github.difflib.patch
Describes the add-delta between original and revised texts.
InsertDelta(Chunk<T>, Chunk<T>) - Constructor for class com.github.difflib.patch.InsertDelta
Creates an insert delta with the two given chunks.
isBootstrap() - Method in class com.github.difflib.algorithm.myers.PathNode
Is this a bootstrap node?
isSnake() - Method in class com.github.difflib.algorithm.myers.PathNode
 

J

j - Variable in class com.github.difflib.algorithm.myers.PathNode
Position in the revised sequence.

L

last() - Method in class com.github.difflib.patch.Chunk
Returns the index of the last line of the chunk.
LINE_NORMALIZER_FOR_HTML - Static variable in class com.github.difflib.text.DiffRowGenerator
 
lineNormalizer(Function<String, String>) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
By default DiffRowGenerator preprocesses lines for HTML output.

M

mergeOriginalRevised(boolean) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Merge the complete result within the original text.
MyersDiff<T> - Class in com.github.difflib.algorithm.myers
A clean-room implementation of Eugene Myers greedy differencing algorithm.
MyersDiff() - Constructor for class com.github.difflib.algorithm.myers.MyersDiff
 
MyersDiff(BiPredicate<T, T>) - Constructor for class com.github.difflib.algorithm.myers.MyersDiff
 

N

newTag(BiFunction<DiffRow.Tag, Boolean, String>) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Generator for New-Text-Tags.
newTag(Function<Boolean, String>) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Generator for New-Text-Tags.

O

oldTag(BiFunction<DiffRow.Tag, Boolean, String>) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Generator for Old-Text-Tags.
oldTag(Function<Boolean, String>) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Generator for Old-Text-Tags.

P

parseUnifiedDiff(InputStream) - Static method in class com.github.difflib.unifieddiff.UnifiedDiffReader
 
parseUnifiedDiff(List<String>) - Static method in class com.github.difflib.UnifiedDiffUtils
Parse the given text in unified format and creates the list of deltas for it.
patch(List<T>, Patch<T>) - Static method in class com.github.difflib.DiffUtils
Patch the original text with given patch
Patch<T> - Class in com.github.difflib.patch
Describes the patch holding all deltas between the original and revised texts.
Patch() - Constructor for class com.github.difflib.patch.Patch
 
Patch(int) - Constructor for class com.github.difflib.patch.Patch
 
PatchFailedException - Exception in com.github.difflib.patch
Thrown whenever a delta cannot be applied as a patch to a given text.
PatchFailedException() - Constructor for exception com.github.difflib.patch.PatchFailedException
 
PatchFailedException(String) - Constructor for exception com.github.difflib.patch.PatchFailedException
 
PathNode - Class in com.github.difflib.algorithm.myers
A node in a diffpath.
PathNode(int, int, boolean, boolean, PathNode) - Constructor for class com.github.difflib.algorithm.myers.PathNode
Concatenates a new path node with an existing diffpath.
prev - Variable in class com.github.difflib.algorithm.myers.PathNode
The previous node in the path.
previousSnake() - Method in class com.github.difflib.algorithm.myers.PathNode
Skips sequences of PathNodes until a snake or bootstrap node is found, or the end of the path is reached.
processDiffs(Function<String, String>) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Processor for diffed text parts.

R

replaceOriginalLinefeedInChangesWithSpaces(boolean) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Sometimes it happens that a change contains multiple lines.
reportLinesUnchanged(boolean) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Give the originial old and new text lines to Diffrow without any additional processing and without any tags to highlight the change.
restore(List<T>) - Method in class com.github.difflib.patch.AbstractDelta
 
restore(List<T>) - Method in class com.github.difflib.patch.ChangeDelta
 
restore(List<T>) - Method in class com.github.difflib.patch.DeleteDelta
 
restore(List<T>) - Method in class com.github.difflib.patch.EqualDelta
 
restore(List<T>) - Method in class com.github.difflib.patch.InsertDelta
 
restore(List<T>) - Method in class com.github.difflib.patch.Patch
Restore the text to original.

S

setDeletedFileMode(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
setDiffCommand(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
setFromFile(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
setFromTimestamp(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
setHeader(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiff
 
setIndex(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
setLines(List<T>) - Method in class com.github.difflib.patch.Chunk
 
setNewFileMode(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
setTag(DiffRow.Tag) - Method in class com.github.difflib.text.DiffRow
 
setToFile(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
setToTimestamp(String) - Method in class com.github.difflib.unifieddiff.UnifiedDiffFile
 
showInlineDiffs(boolean) - Method in class com.github.difflib.text.DiffRowGenerator.Builder
Show inline diffs in generating diff rows or not.
size() - Method in class com.github.difflib.patch.Chunk
 
snake - Variable in class com.github.difflib.algorithm.myers.PathNode
 
SPLIT_BY_WORD_PATTERN - Static variable in class com.github.difflib.text.DiffRowGenerator
 
splitStringPreserveDelimiter(String, Pattern) - Static method in class com.github.difflib.text.DiffRowGenerator
 
SPLITTER_BY_CHARACTER - Static variable in class com.github.difflib.text.DiffRowGenerator
Splitting lines by character to achieve char by char diff checking.
SPLITTER_BY_WORD - Static variable in class com.github.difflib.text.DiffRowGenerator
Splitting lines by word to achieve word by word diff checking.
spplyPatchTo(Predicate<String>, List<String>) - Method in class com.github.difflib.unifieddiff.UnifiedDiff
 
startOriginal - Variable in class com.github.difflib.algorithm.Change
 
startRevised - Variable in class com.github.difflib.algorithm.Change
 

T

toString() - Method in class com.github.difflib.algorithm.myers.PathNode
toString() - Method in class com.github.difflib.patch.ChangeDelta
 
toString() - Method in class com.github.difflib.patch.Chunk
 
toString() - Method in class com.github.difflib.patch.DeleteDelta
 
toString() - Method in class com.github.difflib.patch.EqualDelta
 
toString() - Method in class com.github.difflib.patch.InsertDelta
 
toString() - Method in class com.github.difflib.patch.Patch
 
toString() - Method in class com.github.difflib.text.DiffRow
 

U

UnifiedDiff - Class in com.github.difflib.unifieddiff
 
UnifiedDiff() - Constructor for class com.github.difflib.unifieddiff.UnifiedDiff
 
UnifiedDiffFile - Class in com.github.difflib.unifieddiff
 
UnifiedDiffFile() - Constructor for class com.github.difflib.unifieddiff.UnifiedDiffFile
 
UnifiedDiffParserException - Exception in com.github.difflib.unifieddiff
 
UnifiedDiffParserException() - Constructor for exception com.github.difflib.unifieddiff.UnifiedDiffParserException
 
UnifiedDiffParserException(String) - Constructor for exception com.github.difflib.unifieddiff.UnifiedDiffParserException
 
UnifiedDiffParserException(String, Throwable) - Constructor for exception com.github.difflib.unifieddiff.UnifiedDiffParserException
 
UnifiedDiffParserException(Throwable) - Constructor for exception com.github.difflib.unifieddiff.UnifiedDiffParserException
 
UnifiedDiffParserException(String, Throwable, boolean, boolean) - Constructor for exception com.github.difflib.unifieddiff.UnifiedDiffParserException
 
UnifiedDiffReader - Class in com.github.difflib.unifieddiff
 
UnifiedDiffUtils - Class in com.github.difflib
 
UnifiedDiffWriter - Class in com.github.difflib.unifieddiff
 
UnifiedDiffWriter() - Constructor for class com.github.difflib.unifieddiff.UnifiedDiffWriter
 
unpatch(List<T>, Patch<T>) - Static method in class com.github.difflib.DiffUtils
Unpatch the revised text for a given patch

V

valueOf(String) - Static method in enum com.github.difflib.patch.DeltaType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.difflib.text.DiffRow.Tag
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.difflib.patch.DeltaType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.difflib.text.DiffRow.Tag
Returns an array containing the constants of this enum type, in the order they are declared.
verify(List<T>) - Method in class com.github.difflib.patch.Chunk
Verifies that this chunk's saved text matches the corresponding text in the given sequence.
verifyChunk(List<T>) - Method in class com.github.difflib.patch.AbstractDelta
Verify the chunk of this delta, to fit the target.

W

WHITESPACE_PATTERN - Static variable in class com.github.difflib.text.DiffRowGenerator
 
withChunks(Chunk<T>, Chunk<T>) - Method in class com.github.difflib.patch.AbstractDelta
Create a new delta of the actual instance with customized chunk data.
withChunks(Chunk<T>, Chunk<T>) - Method in class com.github.difflib.patch.ChangeDelta
 
withChunks(Chunk<T>, Chunk<T>) - Method in class com.github.difflib.patch.DeleteDelta
 
withChunks(Chunk<T>, Chunk<T>) - Method in class com.github.difflib.patch.EqualDelta
 
withChunks(Chunk<T>, Chunk<T>) - Method in class com.github.difflib.patch.InsertDelta
 
write(UnifiedDiff, Function<String, List<String>>, Writer, int) - Static method in class com.github.difflib.unifieddiff.UnifiedDiffWriter
 
write(UnifiedDiff, Function<String, List<String>>, Consumer<String>, int) - Static method in class com.github.difflib.unifieddiff.UnifiedDiffWriter
 
A B C D E F G H I J L M N O P R S T U V W 
Skip navigation links

Copyright © 2009–2020 java-diff-utils. All rights reserved.