Class DiffHelper.Diff

java.lang.Object
org.jline.utils.DiffHelper.Diff
Enclosing class:
DiffHelper

public static class DiffHelper.Diff extends Object
Class representing one diff operation.
  • Field Details

  • Constructor Details

    • 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 Details

    • toString

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