Class Patch<T>

java.lang.Object
com.github.difflib.patch.Patch<T>
Type Parameters:
T - The type of the compared elements in the 'lines'.
All Implemented Interfaces:
Serializable

public final class Patch<T> extends Object implements Serializable
Describes the patch holding all deltas between the original and revised texts.
See Also:
  • Field Details

    • deltas

      private final List<AbstractDelta<T>> deltas
    • CONFLICT_PRODUCES_EXCEPTION

      public final ConflictOutput<T> CONFLICT_PRODUCES_EXCEPTION
      Standard Patch behaviour to throw an exception for pathching conflicts.
    • CONFLICT_PRODUCES_MERGE_CONFLICT

      public static final ConflictOutput<String> CONFLICT_PRODUCES_MERGE_CONFLICT
      Git like merge conflict output.
    • conflictOutput

      private ConflictOutput<T> conflictOutput
  • Constructor Details

    • Patch

      public Patch()
    • Patch

      public Patch(int estimatedPatchSize)
  • Method Details