| Modifier and Type | Field and Description |
|---|---|
| pack-priv static DiffAlgorithmFactory | DEFAULT_DIFF
This factory generates the DEFAULT_DIFF algorithm for all these routines. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static List | |
| public static < a generic representing the type of the elements to be compared. T> Patch | Returns: The patch describing the difference between the original and revised sequences. Nevernull.a original, List<T> List represnting the original sequence of elements. Must not be null.a revised, DiffAlgorithmListener List represnting the revised sequence of elements. Must not be null.a progress)DiffAlgorithmListener represnting the progress listener. Can be null.Computes the difference between two sequences of elements using the default diff algorithm. |
| public static < a generic representing the type of the elements to be compared. T> Patch | Returns: The patch describing the difference between the original and revised sequences. Nevernull.a original, List<T> List represnting the original sequence of elements. Must not be null.a revised)List represnting the revised sequence of elements. Must not be null.Computes the difference between two sequences of elements using the default diff algorithm. |
| public static < a generic representing the type of the elements to be compared. T> Patch | Returns: The patch describing the difference between the original and revised sequences. Nevernull.a original, List<T> List represnting the original sequence of elements. Must not be null.a revised, boolean List represnting the revised sequence of elements. Must not be null.a boolean represnting whether to include equal parts in the resulting patch. includeEqualParts)Computes the difference between two sequences of elements using the default diff algorithm. |
| public static Patch | Returns: The patch describing the difference between the original and revised strings. Nevernull.a sourceText, String String represnting the original string. Must not be null.a targetText, DiffAlgorithmListener String represnting the revised string. Must not be null.a progress)DiffAlgorithmListener represnting the progress listener. Can be null.Computes the difference between two strings using the default diff algorithm. |
| public static <T> Patch | Returns: The patch describing the difference between the original and revised sequences. Nevernull.a source, List<T> List represnting the original text. Must not be null.a target, BiPredicate<T, T> List represnting the revised text. Must not be null.a equalizer)BiPredicate represnting the equalizer object to replace the default compare
algorithm (Object.equals). If null the default equalizer of the
default algorithm is used.Computes the difference between the original and revised list of elements with default diff algorithm |
| public static <T> Patch | diff(List<T> original, List<T> revised, DiffAlgorithmI<T> algorithm, DiffAlgorithmListener progress)
|
| public static <T> Patch | Returns: The patch describing the difference between the original and revised sequences. Nevernull.a original, List<T> List represnting the original text. Must not be null.a revised, DiffAlgorithmI<T> List represnting the revised text. Must not be null.a algorithm, DiffAlgorithmListener DiffAlgorithmI represnting the diff algorithm. Must not be null.a progress, boolean DiffAlgorithmListener represnting the diff algorithm listener.Include equal data parts into the patch. includeEqualParts)Computes the difference between the original and revised list of elements with default diff algorithm |
| public static <T> Patch | Returns: The patch describing the difference between the original and revised sequences. Nevernull.a original, List<T> List represnting the original text. Must not be null.a revised, DiffAlgorithmI<T> List represnting the revised text. Must not be null.a algorithm)DiffAlgorithmI represnting the diff algorithm. Must not be null.Computes the difference between the original and revised list of elements with default diff algorithm |
| public static Patch | Returns: The patch describing the difference between the original and revised sequences. Nevernull.a original, String String represnting the original text. Must not be null.a revised)String represnting the revised text. Must not be null.Computes the difference between the given texts inline. |
| public static <T> List | |
| public static <T> List | |
| public static void | withDefaultDiffAlgorithmFactory(DiffAlgorithmFactory
a factory)DiffAlgorithmFactory represnting the new default diff algorithm factory.Sets the default diff algorithm factory to be used by all diff routines. |
| DEFAULT_DIFF | back to summary |
|---|---|
| pack-priv static DiffAlgorithmFactory DEFAULT_DIFF This factory generates the DEFAULT_DIFF algorithm for all these routines. | |
| DiffUtils | back to summary |
|---|---|
| private DiffUtils() | |
| compressLines | back to summary |
|---|---|
| private static List | |
| diff | back to summary |
|---|---|
| public static <T> Patch Computes the difference between two sequences of elements using the default diff algorithm.
| |
| diff | back to summary |
|---|---|
| public static <T> Patch Computes the difference between two sequences of elements using the default diff algorithm.
| |
| diff | back to summary |
|---|---|
| public static <T> Patch Computes the difference between two sequences of elements using the default diff algorithm.
| |
| diff | back to summary |
|---|---|
| public static Patch Computes the difference between two strings using the default diff algorithm.
| |
| diff | back to summary |
|---|---|
| public static <T> Patch Computes the difference between the original and revised list of elements with default diff algorithm
| |
| diff | back to summary |
|---|---|
| public static <T> Patch | |
| diff | back to summary |
|---|---|
| public static <T> Patch Computes the difference between the original and revised list of elements with default diff algorithm
| |
| diff | back to summary |
|---|---|
| public static <T> Patch Computes the difference between the original and revised list of elements with default diff algorithm
| |
| diffInline | back to summary |
|---|---|
| public static Patch Computes the difference between the given texts inline. This one uses the "trick" to make out of texts lists of characters, like DiffRowGenerator does and merges those changes at the end together again. | |
| patch | back to summary |
|---|---|
| public static <T> List Applies the given patch to the original list and returns the revised list. | |
| unpatch | back to summary |
|---|---|
| public static <T> List Applies the given patch to the revised list and returns the original list. | |
| withDefaultDiffAlgorithmFactory | back to summary |
|---|---|
| public static void withDefaultDiffAlgorithmFactory(DiffAlgorithmFactory factory) Sets the default diff algorithm factory to be used by all diff routines.
| |