- java.lang.Object
-
- org.jline.utils.DiffHelper.Diff
-
- Enclosing class:
- DiffHelper
public static class DiffHelper.Diff extends Object
Class representing one diff operation.
-
-
Field Summary
Fields Modifier and Type Field Description DiffHelper.OperationoperationOne of: INSERT, DELETE or EQUAL.AttributedStringtextThe text associated with this diff operation.
-
Constructor Summary
Constructors Constructor Description Diff(DiffHelper.Operation operation, AttributedString text)Constructor.
-
-
-
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.
-
-