Class DiffHelper.Diff

  • Enclosing class:
    DiffHelper

    public static class DiffHelper.Diff
    extends java.lang.Object
    Class representing one diff operation.
    • Constructor Detail

      • Diff

        public Diff​(DiffHelper.Operation operation,
                    AttributedString text)
        Constructor. Initializes the diff with the provided values.
        Parameters:
        operation - One of INSERT, DELETE or EQUAL.
        text - The text being applied.
    • Method Detail

      • toString

        public java.lang.String toString()
        Display a human-readable version of this Diff.
        Overrides:
        toString in class java.lang.Object
        Returns:
        text version.