Package org.webcat.diff
Class Diff<T>
java.lang.Object
org.webcat.diff.Diff<T>
- Type Parameters:
T
- the type of object represented by the diff
Class representing one diff operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The data structure representing a diff is a Linked list of Diff objects: {Diff(Operation.DELETE, "Hello"), Diff(Operation.INSERT, "Goodbye"), Diff(Operation.EQUAL, " world.")} which means: delete "Hello", add "Goodbye" and keep " world." -
Field Summary
FieldsModifier and TypeFieldDescriptionThe text associated with this diff operation.One of: INSERT, DELETE or EQUAL. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
operation
One of: INSERT, DELETE or EQUAL. -
list
The text associated with this diff operation.
-
-
Constructor Details
-
Diff
Constructor. Initializes the diff with the provided values.- Parameters:
operation
- One of INSERT, DELETE or EQUAL.list
- The text being applied.
-
-
Method Details