Package org.jline.utils
Class DiffHelper.Diff
- java.lang.Object
-
- org.jline.utils.DiffHelper.Diff
-
- Enclosing class:
- DiffHelper
public static class DiffHelper.Diff extends java.lang.Object
Class representing one diff operation.
-
-
Field Summary
Fields Modifier and Type Field Description DiffHelper.Operation
operation
One of: INSERT, DELETE or EQUAL.AttributedString
text
The text associated with this diff operation.
-
Constructor Summary
Constructors Constructor Description Diff(DiffHelper.Operation operation, AttributedString text)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
Display a human-readable version of this Diff.
-
-
-
Field Detail
-
operation
public final DiffHelper.Operation operation
One of: INSERT, DELETE or EQUAL.
-
text
public final AttributedString text
The text associated with this 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.
-
-