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

addDelta(Delta<T>) - Method in class pw.prok.kdiff.Patch
Add the given delta to this patch
applyHunk(List<T>) - Method in class pw.prok.kdiff.Chunk
 
applyHunk(List<T>, int) - Method in class pw.prok.kdiff.Chunk
 
applyHunk(List<T>, int, Equalizer<T>) - Method in class pw.prok.kdiff.Chunk
 

B

build() - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Build the DiffRowGenerator.
Builder() - Constructor for class pw.prok.kdiff.diff.DiffRowGenerator.Builder
 
buildPath(List<T>, List<T>) - Method in class pw.prok.kdiff.myers.MyersDiff
Computes the minimum diffpath that expresses de differences between the original and revised sequences, according to Gene Myers differencing algorithm.
buildRevision(PathNode, List<T>, List<T>) - Method in class pw.prok.kdiff.myers.MyersDiff
Constructs a Patch from a difference path.

C

Chunk<T> - Class in pw.prok.kdiff
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>) - Constructor for class pw.prok.kdiff.Chunk
Creates a chunk and saves a copy of affected lines
Chunk(int, T[]) - Constructor for class pw.prok.kdiff.Chunk
Creates a chunk and saves a copy of affected lines
columnWidth(int) - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Set the column with of generated lines of original and revised texts.
compare(Delta<?>, Delta<?>) - Method in class pw.prok.kdiff.delta.DeltaComparator
 
copy() - Method in class pw.prok.kdiff.Chunk
 
copy() - Method in class pw.prok.kdiff.delta.Delta
 
copy() - Method in class pw.prok.kdiff.Patch
 
createEmpty(List<Delta<T>>) - Method in class pw.prok.kdiff.Patch
Internal method of Patch class.
createResult(List<T>, List<Hunk<T>>, List<Delta<T>>) - Method in class pw.prok.kdiff.Patch
Internal method of Patch class.

D

DEFAULT_EQUALIZER - Static variable in interface pw.prok.kdiff.diff.Equalizer
Default equalizer.
Delta<T> - Class in pw.prok.kdiff.delta
Describes the delta between original and revised texts.
Delta(Chunk<T>, Chunk<T>) - Constructor for class pw.prok.kdiff.delta.Delta
Construct the delta for original and revised chunks
Delta.DeltaType - Enum in pw.prok.kdiff.delta
Specifies the type of the delta.
DeltaComparator - Class in pw.prok.kdiff.delta
Compares delta by original positions
diff(T[], T[]) - Method in interface pw.prok.kdiff.diff.DiffAlgorithm
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
diff(List<T>, List<T>) - Method in interface pw.prok.kdiff.diff.DiffAlgorithm
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
diff(List<T>, List<T>) - Static method in class pw.prok.kdiff.diff.DiffUtils
Computes the difference between the original and revised list of elements with default diff algorithm
diff(List<T>, List<T>, Equalizer<T>) - Static method in class pw.prok.kdiff.diff.DiffUtils
Computes the difference between the original and revised list of elements with default diff algorithm
diff(List<T>, List<T>, DiffAlgorithm<T, R>) - Static method in class pw.prok.kdiff.diff.DiffUtils
Computes the difference between the original and revised list of elements with default diff algorithm
diff(T[], T[]) - Method in class pw.prok.kdiff.myers.MyersDiff
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
diff(List<T>, List<T>) - Method in class pw.prok.kdiff.myers.MyersDiff
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
DiffAlgorithm<T,R extends PatchResult<T>> - Interface in pw.prok.kdiff.diff
The general interface for computing diffs between two lists of elements of type T.
DifferentiationFailedException - Exception in pw.prok.kdiff.myers
Thrown whenever the differencing engine cannot produce the differences between two revisions of ta text.
DifferentiationFailedException() - Constructor for exception pw.prok.kdiff.myers.DifferentiationFailedException
 
DifferentiationFailedException(String) - Constructor for exception pw.prok.kdiff.myers.DifferentiationFailedException
 
DiffException - Exception in pw.prok.kdiff.diff
Base class for all exceptions emanating from this package.
DiffException() - Constructor for exception pw.prok.kdiff.diff.DiffException
 
DiffException(String) - Constructor for exception pw.prok.kdiff.diff.DiffException
 
DiffException(Throwable) - Constructor for exception pw.prok.kdiff.diff.DiffException
 
DiffNode - Class in pw.prok.kdiff.myers
A diffnode in a diffpath.
DiffNode(int, int, PathNode) - Constructor for class pw.prok.kdiff.myers.DiffNode
Constructs a DiffNode.
DiffParser<T,C,Visitor extends DiffVisitor<T,C>> - Class in pw.prok.kdiff.diff
 
DiffParser() - Constructor for class pw.prok.kdiff.diff.DiffParser
 
DiffRow - Class in pw.prok.kdiff.diff
Describes the diff row in form [tag, oldLine, newLine) for showing the difference between two texts
DiffRow(DiffRow.Tag, String, String) - Constructor for class pw.prok.kdiff.diff.DiffRow
 
DiffRow.Tag - Enum in pw.prok.kdiff.diff
 
DiffRowGenerator - Class in pw.prok.kdiff.diff
This class for generating DiffRows for side-by-sidy view.
DiffRowGenerator.Builder - Class in pw.prok.kdiff.diff
This class used for building the DiffRowGenerator.
DiffUtils - Class in pw.prok.kdiff.diff
Implements the difference and patching engine
DiffUtils() - Constructor for class pw.prok.kdiff.diff.DiffUtils
 
DiffVisitor<T,C> - Interface in pw.prok.kdiff.diff
 

E

Equalizer<T> - Interface in pw.prok.kdiff.diff
Specifies when two compared elements in the Myers algorithm are equal.
equals(Object) - Method in class pw.prok.kdiff.Chunk
equals(Object) - Method in class pw.prok.kdiff.delta.Delta
 
equals(Object) - Method in class pw.prok.kdiff.diff.DiffRow
 
equals(T, T) - Method in interface pw.prok.kdiff.diff.Equalizer
Indicates if two elements are equal according to the diff mechanism.
equals(Object) - Method in class pw.prok.kdiff.Pair
 
expandTabs(String) - Static method in enum pw.prok.kdiff.StringUtills
Replaces all tabs with 4 spaces.

F

format(Date, StringBuffer, FieldPosition) - Method in class pw.prok.kdiff.diff.parsers.UnifedDiffParser.UnifedDiffDateFormat
 

G

generateDiffRows(List<String>, List<String>) - Method in class pw.prok.kdiff.diff.DiffRowGenerator
Get the DiffRows describing the difference between original and revised texts using the given patch.
generateDiffRows(List<String>, List<String>, Patch<String, R>) - Method in class pw.prok.kdiff.diff.DiffRowGenerator
Generates the DiffRows describing the difference between original and revised texts using the given patch.
getDelta() - Method in class pw.prok.kdiff.Hunk
 
getDeltas() - Method in class pw.prok.kdiff.Patch
Get the list of computed deltas
getFirst() - Method in class pw.prok.kdiff.Pair
 
getFirst() - Method in class pw.prok.kdiff.Pair.ImmutablePair
 
getFirst() - Method in class pw.prok.kdiff.Pair.MutablePair
 
getHunks() - Method in class pw.prok.kdiff.PatchResult
 
getLines() - Method in class pw.prok.kdiff.Chunk
 
getMap() - Method in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
getNewLine() - Method in class pw.prok.kdiff.diff.DiffRow
 
getOffset() - Method in class pw.prok.kdiff.Hunk
 
getOldLine() - Method in class pw.prok.kdiff.diff.DiffRow
 
getOriginal() - Method in class pw.prok.kdiff.delta.Delta
 
getOriginal() - Method in class pw.prok.kdiff.Patch
 
getOriginalDate() - Method in class pw.prok.kdiff.Patch
 
getOriginalPosition() - Method in class pw.prok.kdiff.Hunk
 
getPatch() - Method in class pw.prok.kdiff.diff.visitors.SimpleVisitor
 
getPosition() - Method in class pw.prok.kdiff.Chunk
 
getRejects() - Method in class pw.prok.kdiff.PatchResult
 
getResult() - Method in class pw.prok.kdiff.PatchResult
 
getRevised() - Method in class pw.prok.kdiff.delta.Delta
 
getRevised() - Method in class pw.prok.kdiff.Patch
 
getRevisedDate() - Method in class pw.prok.kdiff.Patch
 
getRevisedPosition() - Method in class pw.prok.kdiff.Hunk
 
getSecond() - Method in class pw.prok.kdiff.Pair
 
getSecond() - Method in class pw.prok.kdiff.Pair.ImmutablePair
 
getSecond() - Method in class pw.prok.kdiff.Pair.MutablePair
 
getTag() - Method in class pw.prok.kdiff.diff.DiffRow
 
getType() - Method in class pw.prok.kdiff.delta.Delta
Returns the type of delta

H

hashCode() - Method in class pw.prok.kdiff.Chunk
 
hashCode() - Method in class pw.prok.kdiff.delta.Delta
 
hashCode() - Method in class pw.prok.kdiff.diff.DiffRow
 
hashCode() - Method in class pw.prok.kdiff.Pair
 
htmlEntites(String) - Static method in enum pw.prok.kdiff.StringUtills
Replaces all opening an closing tags with < or >.
Hunk<T> - Class in pw.prok.kdiff
Represents hunk of delta
Hunk(Delta<T>, int) - Constructor for class pw.prok.kdiff.Hunk
 

I

ignoreBlankLines(boolean) - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Ignore blank lines in generating diff rows or not.
ignoreWhiteSpaces(boolean) - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Ignore white spaces in generating diff rows or not.
immutable(F, S) - Static method in class pw.prok.kdiff.Pair
 
ImmutablePair(F, S) - Constructor for class pw.prok.kdiff.Pair.ImmutablePair
 
InlineNewCssClass(String) - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Set the css class used for displaying changes in the revised text.
InlineNewTag(String) - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Set the tag used for displaying changes in the revised text.
InlineOldCssClass(String) - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Set the css class used for displaying changes in the original text.
InlineOldTag(String) - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Set the tag used for displaying changes in the original text.
INSTANCE - Static variable in class pw.prok.kdiff.delta.DeltaComparator
 
INSTANCE - Static variable in class pw.prok.kdiff.diff.parsers.UnifedDiffParser
 
INSTANCE - Static variable in class pw.prok.kdiff.diff.parsers.UnifedDiffParser.UnifedDiffDateFormat
 
isBootstrap() - Method in class pw.prok.kdiff.myers.PathNode
Is this a bootstrap node?
isSnake() - Method in class pw.prok.kdiff.myers.DiffNode
Is this node a Snake node?
isSnake() - Method in class pw.prok.kdiff.myers.PathNode
Is this node a Snake node?
isSnake() - Method in class pw.prok.kdiff.myers.Snake
Is this node a Snake node?

J

join(Iterable<T>, String) - Static method in enum pw.prok.kdiff.StringUtills
 

L

last() - Method in class pw.prok.kdiff.Chunk
 

M

makeDiff(String, String, List<String>, Patch<String, ?>, int) - Static method in class pw.prok.kdiff.diff.DiffUtils
makeDiff takes a Patch and some other arguments, returning the Unified Diff format text representing the Patch.
MappedVisitor<T,C> - Class in pw.prok.kdiff.diff.visitors
 
MappedVisitor() - Constructor for class pw.prok.kdiff.diff.visitors.MappedVisitor
 
MappedVisitor(Map<Pair<String, String>, Patch<T, PatchResult<T>>>) - Constructor for class pw.prok.kdiff.diff.visitors.MappedVisitor
 
merge(Patch<T, R>) - Method in class pw.prok.kdiff.Patch
mergeSelf(Patch<T, R>) - Method in class pw.prok.kdiff.Patch
Merges into self deltas from other patch
mutable() - Static method in class pw.prok.kdiff.Pair
 
mutable(F, S) - Static method in class pw.prok.kdiff.Pair
 
MyersDiff<T,R extends PatchResult<T>> - Class in pw.prok.kdiff.myers
A clean-room implementation of Eugene Myers differencing algorithm.
MyersDiff() - Constructor for class pw.prok.kdiff.myers.MyersDiff
Constructs an instance of the Myers differencing algorithm.
MyersDiff(Equalizer<T>) - Constructor for class pw.prok.kdiff.myers.MyersDiff
Constructs an instance of the Myers differencing algorithm.

N

normalize(String) - Static method in enum pw.prok.kdiff.StringUtills
 
normalize(List<String>) - Static method in enum pw.prok.kdiff.StringUtills
 

O

original - Variable in class pw.prok.kdiff.myers.PathNode
Position in the original sequence.
originalDate - Variable in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
originalFilename - Variable in class pw.prok.kdiff.diff.visitors.MappedVisitor
 

P

Pair<F,S> - Class in pw.prok.kdiff
 
Pair() - Constructor for class pw.prok.kdiff.Pair
 
Pair.ImmutablePair<F,S> - Class in pw.prok.kdiff
 
Pair.MutablePair<F,S> - Class in pw.prok.kdiff
 
parse(List<T>, Visitor) - Method in class pw.prok.kdiff.diff.DiffParser
 
parse(List<String>, Visitor) - Method in class pw.prok.kdiff.diff.parsers.UnifedDiffParser
 
parse(String, ParsePosition) - Method in class pw.prok.kdiff.diff.parsers.UnifedDiffParser.UnifedDiffDateFormat
 
parseDiff(List<String>) - Static method in class pw.prok.kdiff.diff.DiffUtils
Parse the given text in unified format and creates the patch for it.
parseUnifedDiff(List<String>) - Static method in class pw.prok.kdiff.diff.DiffUtils
Parse the given text in unified format and creates the patches for it.
parseUnifedDiff(List<String>, Map<Pair<String, String>, Patch<String, PatchResult<String>>>) - Static method in class pw.prok.kdiff.diff.DiffUtils
Parse the given text in unified format and creates the patches for it.
patch(List<T>) - Method in class pw.prok.kdiff.delta.Delta
Applies this delta as the patch for a given target
patch(List<T>, Patch<T, R>) - Static method in class pw.prok.kdiff.diff.DiffUtils
Patch the original text with given patch
Patch<T,R extends PatchResult<T>> - Class in pw.prok.kdiff
Describes the patch holding all deltas between the original and revised texts.
Patch() - Constructor for class pw.prok.kdiff.Patch
 
Patch(List<Delta<T>>) - Constructor for class pw.prok.kdiff.Patch
 
patch(List<T>) - Method in class pw.prok.kdiff.Patch
Apply this patch to the given target
PatchFailedException - Exception in pw.prok.kdiff
Thrown whenever a delta cannot be applied as a patch to a given text.
PatchFailedException() - Constructor for exception pw.prok.kdiff.PatchFailedException
 
PatchFailedException(String) - Constructor for exception pw.prok.kdiff.PatchFailedException
 
PatchFailedException(Throwable) - Constructor for exception pw.prok.kdiff.PatchFailedException
 
PatchResult<T> - Class in pw.prok.kdiff
 
PatchResult(List<T>, List<Hunk<T>>, List<Delta<T>>) - Constructor for class pw.prok.kdiff.PatchResult
 
PathNode - Class in pw.prok.kdiff.myers
A node in a diffpath.
PathNode(int, int, PathNode) - Constructor for class pw.prok.kdiff.myers.PathNode
Concatenates a new path node with an existing diffpath.
prev - Variable in class pw.prok.kdiff.myers.PathNode
The previous node in the path.
previousSnake() - Method in class pw.prok.kdiff.myers.PathNode
Skips sequences of DiffNodes until a Snake or bootstrap node is found, or the end of the path is reached.
pw.prok.kdiff - package pw.prok.kdiff
 
pw.prok.kdiff.delta - package pw.prok.kdiff.delta
 
pw.prok.kdiff.diff - package pw.prok.kdiff.diff
 
pw.prok.kdiff.diff.parsers - package pw.prok.kdiff.diff.parsers
 
pw.prok.kdiff.diff.visitors - package pw.prok.kdiff.diff.visitors
 
pw.prok.kdiff.myers - package pw.prok.kdiff.myers
 

R

restore(List<T>) - Method in class pw.prok.kdiff.delta.Delta
Cancel this delta for a given revised text.
restore(List<T>, Patch<T, R>) - Static method in class pw.prok.kdiff.diff.DiffUtils
RestoreĐ’ the revised text for a given patch
restore(List<T>) - Method in class pw.prok.kdiff.Patch
Restore the text to original.
revised - Variable in class pw.prok.kdiff.myers.PathNode
Position in the revised sequence.
revisedDate - Variable in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
revisedFilename - Variable in class pw.prok.kdiff.diff.visitors.MappedVisitor
 

S

setFirst(F) - Method in class pw.prok.kdiff.Pair.MutablePair
 
setLines(List<T>) - Method in class pw.prok.kdiff.Chunk
 
setNewLine(String) - Method in class pw.prok.kdiff.diff.DiffRow
 
setOldLine(String) - Method in class pw.prok.kdiff.diff.DiffRow
 
setOriginal(Chunk<T>) - Method in class pw.prok.kdiff.delta.Delta
 
setOriginal(String) - Method in class pw.prok.kdiff.Patch
 
setOriginalDate(Date) - Method in class pw.prok.kdiff.Patch
 
setRevised(Chunk<T>) - Method in class pw.prok.kdiff.delta.Delta
 
setRevised(String) - Method in class pw.prok.kdiff.Patch
 
setRevisedDate(Date) - Method in class pw.prok.kdiff.Patch
 
setSecond(S) - Method in class pw.prok.kdiff.Pair.MutablePair
 
setTag(DiffRow.Tag) - Method in class pw.prok.kdiff.diff.DiffRow
 
showInlineDiffs(boolean) - Method in class pw.prok.kdiff.diff.DiffRowGenerator.Builder
Show inline diffs in generating diff rows or not.
SimpleVisitor<T,C> - Class in pw.prok.kdiff.diff.visitors
 
SimpleVisitor() - Constructor for class pw.prok.kdiff.diff.visitors.SimpleVisitor
 
size() - Method in class pw.prok.kdiff.Chunk
 
Snake - Class in pw.prok.kdiff.myers
Represents a snake in a diffpath.
Snake(int, int, PathNode) - Constructor for class pw.prok.kdiff.myers.Snake
Constructs a snake node.
StringUtills - Enum in pw.prok.kdiff
 

T

toString() - Method in class pw.prok.kdiff.Chunk
 
toString() - Method in class pw.prok.kdiff.diff.DiffRow
 
toString() - Method in class pw.prok.kdiff.myers.PathNode

U

UnifedDiffDateFormat() - Constructor for class pw.prok.kdiff.diff.parsers.UnifedDiffParser.UnifedDiffDateFormat
 
UnifedDiffParser<Visitor extends DiffVisitor<java.lang.String,java.lang.String>> - Class in pw.prok.kdiff.diff.parsers
 
UnifedDiffParser() - Constructor for class pw.prok.kdiff.diff.parsers.UnifedDiffParser
 
UnifedDiffParser.UnifedDiffDateFormat - Class in pw.prok.kdiff.diff.parsers
 

V

valueOf(String) - Static method in enum pw.prok.kdiff.delta.Delta.DeltaType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum pw.prok.kdiff.diff.DiffRow.Tag
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum pw.prok.kdiff.StringUtills
Returns the enum constant of this type with the specified name.
values() - Static method in enum pw.prok.kdiff.delta.Delta.DeltaType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum pw.prok.kdiff.diff.DiffRow.Tag
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum pw.prok.kdiff.StringUtills
Returns an array containing the constants of this enum type, in the order they are declared.
verify(List<T>) - Method in class pw.prok.kdiff.Chunk
Verifies that this chunk's saved text matches the corresponding text in the given sequence.
visitChunkEnd(int, int, int, int) - Method in interface pw.prok.kdiff.diff.DiffVisitor
 
visitChunkEnd(int, int, int, int) - Method in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
visitChunkStart(int, int, int, int) - Method in interface pw.prok.kdiff.diff.DiffVisitor
 
visitChunkStart(int, int, int, int) - Method in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
visitComment(C) - Method in interface pw.prok.kdiff.diff.DiffVisitor
 
visitComment(C) - Method in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
visitLine(DiffRow.Tag, T) - Method in interface pw.prok.kdiff.diff.DiffVisitor
 
visitLine(DiffRow.Tag, T) - Method in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
visitOriginal(String, Date) - Method in interface pw.prok.kdiff.diff.DiffVisitor
 
visitOriginal(String, Date) - Method in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
visitOriginal(String, Date) - Method in class pw.prok.kdiff.diff.visitors.SimpleVisitor
 
visitRevised(String, Date) - Method in interface pw.prok.kdiff.diff.DiffVisitor
 
visitRevised(String, Date) - Method in class pw.prok.kdiff.diff.visitors.MappedVisitor
 
visitRevised(String, Date) - Method in class pw.prok.kdiff.diff.visitors.SimpleVisitor
 

W

wrapInTag(LinkedList<String>, int, int, String, String) - Static method in class pw.prok.kdiff.diff.DiffRowGenerator
Wrap the elements in the sequence with the given tag
wrapInTag(String, String, String) - Static method in class pw.prok.kdiff.diff.DiffRowGenerator
Wrap the given line with the given tag
wrapText(List<String>, int) - Static method in enum pw.prok.kdiff.StringUtills
 
wrapText(String, int) - Static method in enum pw.prok.kdiff.StringUtills
Wrap the text with the given column width
A B C D E F G H I J L M N O P R S T U V W 
Skip navigation links