Index
All Classes and Interfaces|All Packages|Serialized Form
A
- arg() - Method in class org.mantoux.delta.Op
- argAsString() - Method in class org.mantoux.delta.Op
- AttributeMap - Class in org.mantoux.delta
- AttributeMap() - Constructor for class org.mantoux.delta.AttributeMap
- AttributeMap(Map<String, Object>) - Constructor for class org.mantoux.delta.AttributeMap
- AttributeMap(AttributeMap) - Constructor for class org.mantoux.delta.AttributeMap
- attributes() - Method in class org.mantoux.delta.Op
C
- changeLength() - Method in class org.mantoux.delta.Delta
- chars1 - Variable in class org.mantoux.delta.diff_match_patch.LinesToCharsResult
- chars2 - Variable in class org.mantoux.delta.diff_match_patch.LinesToCharsResult
- chop() - Method in class org.mantoux.delta.Delta
- compose(Delta) - Method in class org.mantoux.delta.Delta
- concat(Delta) - Method in class org.mantoux.delta.Delta
- copy() - Method in class org.mantoux.delta.AttributeMap
- copy() - Method in class org.mantoux.delta.Op
D
- delete(int) - Method in class org.mantoux.delta.Delta
- delete(int) - Static method in class org.mantoux.delta.Op
- DELETE - Enum constant in enum class org.mantoux.delta.diff_match_patch.Operation
- DELETE - Enum constant in enum class org.mantoux.delta.Op.Type
- Delta - Class in org.mantoux.delta
- Delta() - Constructor for class org.mantoux.delta.Delta
- Delta(Collection<Op>) - Constructor for class org.mantoux.delta.Delta
- Delta.Iterator - Class in org.mantoux.delta
- deserialize(JsonParser, DeserializationContext) - Method in class org.mantoux.delta.OpDeserializer
- Diff(diff_match_patch.Operation, String) - Constructor for class org.mantoux.delta.diff_match_patch.Diff
-
Constructor.
- diff_bisect(String, String, long) - Method in class org.mantoux.delta.diff_match_patch
-
Find the 'middle snake' of a diff, split the problem in two and return the recursively constructed diff.
- diff_charsToLines(List<diff_match_patch.Diff>, List<String>) - Method in class org.mantoux.delta.diff_match_patch
-
Rehydrate the text in a diff from a string of line hashes to real lines of text.
- diff_cleanupEfficiency(LinkedList<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Reduce the number of edits by eliminating operationally trivial equalities.
- diff_cleanupMerge(LinkedList<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Reorder and merge like edit sections.
- diff_cleanupSemantic(LinkedList<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Reduce the number of edits by eliminating semantically trivial equalities.
- diff_cleanupSemanticLossless(LinkedList<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Look for single edits surrounded on both sides by equalities which can be shifted sideways to align the edit to a word boundary. e.g: The cat came
- diff_commonOverlap(String, String) - Method in class org.mantoux.delta.diff_match_patch
-
Determine if the suffix of one string is the prefix of another.
- diff_commonPrefix(String, String) - Method in class org.mantoux.delta.diff_match_patch
-
Determine the common prefix of two strings
- diff_commonSuffix(String, String) - Method in class org.mantoux.delta.diff_match_patch
-
Determine the common suffix of two strings
- Diff_EditCost - Variable in class org.mantoux.delta.diff_match_patch
-
Cost of an empty edit operation in terms of edit characters.
- diff_fromDelta(String, String) - Method in class org.mantoux.delta.diff_match_patch
-
Given the original text1, and an encoded string which describes the operations required to transform text1 into text2, compute the full diff.
- diff_halfMatch(String, String) - Method in class org.mantoux.delta.diff_match_patch
-
Do the two texts share a substring which is at least half the length of the longer text?
- diff_levenshtein(List<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Compute the Levenshtein distance; the number of inserted, deleted or substituted characters.
- diff_linesToChars(String, String) - Method in class org.mantoux.delta.diff_match_patch
-
Split two texts into a list of strings.
- diff_main(String, String) - Method in class org.mantoux.delta.diff_match_patch
-
Find the differences between two texts.
- diff_main(String, String, boolean) - Method in class org.mantoux.delta.diff_match_patch
-
Find the differences between two texts.
- diff_match_patch - Class in org.mantoux.delta
-
Class containing the diff, match and patch methods.
- diff_match_patch() - Constructor for class org.mantoux.delta.diff_match_patch
- diff_match_patch.Diff - Class in org.mantoux.delta
-
Class representing one diff operation.
- diff_match_patch.LinesToCharsResult - Class in org.mantoux.delta
-
Internal class for returning results from diff_linesToChars().
- diff_match_patch.Operation - Enum Class in org.mantoux.delta
-
The data structure representing a diff is a Linked list of Diff objects: {Diff(Operation.DELETE, "Hello"), Diff(Operation.INSERT, "Goodbye"), Diff(Operation.EQUAL, " world.")} which means: delete "Hello", add "Goodbye" and keep " world."
- diff_match_patch.Patch - Class in org.mantoux.delta
-
Class representing one patch operation.
- diff_prettyHtml(List<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Convert a Diff list into a pretty HTML report.
- diff_text1(List<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Compute and return the source text (all equalities and deletions).
- diff_text2(List<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Compute and return the destination text (all equalities and insertions).
- Diff_Timeout - Variable in class org.mantoux.delta.diff_match_patch
-
Number of seconds to map a diff before giving up (0 for infinity).
- diff_toDelta(List<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Crush the diff into an encoded string which describes the operations required to transform text1 into text2.
- diff_xIndex(List<diff_match_patch.Diff>, int) - Method in class org.mantoux.delta.diff_match_patch
-
loc is a location in text1, compute and return the equivalent location in text2. e.g.
- diffs - Variable in class org.mantoux.delta.diff_match_patch.Patch
E
- eachLine(BiFunction<Delta, AttributeMap, Boolean>) - Method in class org.mantoux.delta.Delta
- eachLine(BiFunction<Delta, AttributeMap, Boolean>, String) - Method in class org.mantoux.delta.Delta
- EQUAL - Enum constant in enum class org.mantoux.delta.diff_match_patch.Operation
- equals(Object) - Method in class org.mantoux.delta.diff_match_patch.Diff
-
Is this Diff equivalent to another Diff?
- equals(Object) - Method in class org.mantoux.delta.Op
F
- filter(Predicate<Op>) - Method in class org.mantoux.delta.Delta
H
- hasAttributes() - Method in class org.mantoux.delta.Op
- hashCode() - Method in class org.mantoux.delta.diff_match_patch.Diff
-
Create a numeric hash value for a Diff.
- hashCode() - Method in class org.mantoux.delta.Op
- hasNext() - Method in class org.mantoux.delta.Delta.Iterator
I
- insert(Object) - Static method in class org.mantoux.delta.Op
- insert(Object, AttributeMap) - Method in class org.mantoux.delta.Delta
- insert(Object, AttributeMap) - Static method in class org.mantoux.delta.Op
- insert(String) - Method in class org.mantoux.delta.Delta
- insert(Map<String, Object>) - Method in class org.mantoux.delta.Delta
- INSERT - Enum constant in enum class org.mantoux.delta.diff_match_patch.Operation
- INSERT - Enum constant in enum class org.mantoux.delta.Op.Type
- invert(Delta) - Method in class org.mantoux.delta.Delta
- isDelete() - Method in class org.mantoux.delta.Op
- isInsert() - Method in class org.mantoux.delta.Op
- isRetain() - Method in class org.mantoux.delta.Op
- isTextInsert() - Method in class org.mantoux.delta.Op
- iterator() - Method in class org.mantoux.delta.Delta
L
- length() - Method in class org.mantoux.delta.Delta
- length() - Method in class org.mantoux.delta.Op
- length1 - Variable in class org.mantoux.delta.diff_match_patch.Patch
- length2 - Variable in class org.mantoux.delta.diff_match_patch.Patch
- lineArray - Variable in class org.mantoux.delta.diff_match_patch.LinesToCharsResult
- LinesToCharsResult(String, String, List<String>) - Constructor for class org.mantoux.delta.diff_match_patch.LinesToCharsResult
M
- map(Function<Op, T>) - Method in class org.mantoux.delta.Delta
- match_alphabet(String) - Method in class org.mantoux.delta.diff_match_patch
-
Initialise the alphabet for the Bitap algorithm.
- match_bitap(String, String, int) - Method in class org.mantoux.delta.diff_match_patch
-
Locate the best instance of 'pattern' in 'text' near 'loc' using the Bitap algorithm.
- Match_Distance - Variable in class org.mantoux.delta.diff_match_patch
-
How far to search for a match (0 = exact location, 1000+ = broad match).
- match_main(String, String, int) - Method in class org.mantoux.delta.diff_match_patch
-
Locate the best instance of 'pattern' in 'text' near 'loc'.
- Match_Threshold - Variable in class org.mantoux.delta.diff_match_patch
-
At what point is no match declared (0.0 = perfection, 1.0 = very loose).
N
- next() - Method in class org.mantoux.delta.Delta.Iterator
- next(int) - Method in class org.mantoux.delta.Delta.Iterator
O
- of(String, Object) - Static method in class org.mantoux.delta.AttributeMap
- of(String, Object, String, Object) - Static method in class org.mantoux.delta.AttributeMap
- of(String, Object, String, Object, String, Object) - Static method in class org.mantoux.delta.AttributeMap
- of(String, Object, String, Object, String, Object, String, Object) - Static method in class org.mantoux.delta.AttributeMap
- Op - Class in org.mantoux.delta
- Op() - Constructor for class org.mantoux.delta.Op
- Op.Type - Enum Class in org.mantoux.delta
- OpDeserializer - Class in org.mantoux.delta
- OpDeserializer() - Constructor for class org.mantoux.delta.OpDeserializer
- operation - Variable in class org.mantoux.delta.diff_match_patch.Diff
-
One of: INSERT, DELETE or EQUAL.
- org.mantoux.delta - package org.mantoux.delta
P
- partition(Predicate<Op>) - Method in class org.mantoux.delta.Delta
- Patch() - Constructor for class org.mantoux.delta.diff_match_patch.Patch
-
Constructor.
- patch_addContext(diff_match_patch.Patch, String) - Method in class org.mantoux.delta.diff_match_patch
-
Increase the context until it is unique, but don't let the pattern expand beyond Match_MaxBits.
- patch_addPadding(LinkedList<diff_match_patch.Patch>) - Method in class org.mantoux.delta.diff_match_patch
-
Add some padding on text start and end so that edges can match something.
- patch_apply(LinkedList<diff_match_patch.Patch>, String) - Method in class org.mantoux.delta.diff_match_patch
-
Merge a set of patches onto the text.
- patch_deepCopy(LinkedList<diff_match_patch.Patch>) - Method in class org.mantoux.delta.diff_match_patch
-
Given an array of patches, return another array that is identical.
- Patch_DeleteThreshold - Variable in class org.mantoux.delta.diff_match_patch
-
When deleting a large block of text (over ~64 characters), how close do the contents have to be to match the expected contents. (0.0 = perfection, 1.0 = very loose).
- patch_fromText(String) - Method in class org.mantoux.delta.diff_match_patch
-
Parse a textual representation of patches and return a List of Patch objects.
- patch_make(String, String) - Method in class org.mantoux.delta.diff_match_patch
-
Compute a list of patches to turn text1 into text2.
- patch_make(String, String, LinkedList<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Deprecated.
- patch_make(String, LinkedList<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Compute a list of patches to turn text1 into text2. text2 is not provided, diffs are the delta between text1 and text2.
- patch_make(LinkedList<diff_match_patch.Diff>) - Method in class org.mantoux.delta.diff_match_patch
-
Compute a list of patches to turn text1 into text2. text1 will be derived from the provided diffs.
- Patch_Margin - Variable in class org.mantoux.delta.diff_match_patch
-
Chunk size for context length.
- patch_splitMax(LinkedList<diff_match_patch.Patch>) - Method in class org.mantoux.delta.diff_match_patch
-
Look through the patches and break up any which are longer than the maximum limit of the match algorithm.
- patch_toText(List<diff_match_patch.Patch>) - Method in class org.mantoux.delta.diff_match_patch
-
Take a list of patches and return a textual representation.
- peek() - Method in class org.mantoux.delta.Delta.Iterator
- peekLength() - Method in class org.mantoux.delta.Delta.Iterator
- peekType() - Method in class org.mantoux.delta.Delta.Iterator
- plainText() - Method in class org.mantoux.delta.Delta
- push(Op) - Method in class org.mantoux.delta.Delta
R
- reduce(T, BiFunction<T, Op, T>) - Method in class org.mantoux.delta.Delta
- rest() - Method in class org.mantoux.delta.Delta.Iterator
- retain(int) - Method in class org.mantoux.delta.Delta
- retain(int) - Static method in class org.mantoux.delta.Op
- retain(int, AttributeMap) - Method in class org.mantoux.delta.Delta
- retain(int, AttributeMap) - Static method in class org.mantoux.delta.Op
- RETAIN - Enum constant in enum class org.mantoux.delta.Op.Type
S
- slice(int) - Method in class org.mantoux.delta.Delta
- slice(int, int) - Method in class org.mantoux.delta.Delta
- start1 - Variable in class org.mantoux.delta.diff_match_patch.Patch
- start2 - Variable in class org.mantoux.delta.diff_match_patch.Patch
T
- text - Variable in class org.mantoux.delta.diff_match_patch.Diff
-
The text associated with this diff operation.
- toString() - Method in class org.mantoux.delta.Delta
- toString() - Method in class org.mantoux.delta.diff_match_patch.Diff
-
Display a human-readable version of this Diff.
- toString() - Method in class org.mantoux.delta.diff_match_patch.Patch
-
Emulate GNU diff's format.
- toString() - Method in class org.mantoux.delta.Op
- type() - Method in class org.mantoux.delta.Op
V
- valueOf(String) - Static method in enum class org.mantoux.delta.diff_match_patch.Operation
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.mantoux.delta.Op.Type
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.mantoux.delta.diff_match_patch.Operation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.mantoux.delta.Op.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form
diff_match_patch.Diff> diffs).