Package com._1c.g5.v8.dt.compare.merge
Class MergeFormatter.OneSideLineDifference
java.lang.Object
com._1c.g5.gumtree.core.Difference
com._1c.g5.gumtree.core.LineDifference
com._1c.g5.v8.dt.compare.merge.MergeFormatter.OneSideLineDifference
- Enclosing class:
- MergeFormatter
public static class MergeFormatter.OneSideLineDifference
extends com._1c.g5.gumtree.core.LineDifference
The extension of
LineDifference to store one side difference.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe line difference side.Nested classes/interfaces inherited from class com._1c.g5.gumtree.core.Difference
com._1c.g5.gumtree.core.Difference.Type -
Field Summary
Fields inherited from class com._1c.g5.gumtree.core.LineDifference
leftEndLine, leftStartLine, rightEndLine, rightStartLineFields inherited from class com._1c.g5.gumtree.core.Difference
leftEnd, leftStart, rightEnd, rightStart, type -
Constructor Summary
ConstructorsConstructorDescriptionOneSideLineDifference(int leftStart, int leftEnd, int rightStart, int rightEnd, int leftStartLine, int leftEndLine, int rightStartLine, int rightEndLine, com._1c.g5.gumtree.core.Difference.Type type, MergeFormatter.OneSideLineDifference.Side side) Creates a new instance. -
Method Summary
Methods inherited from class com._1c.g5.gumtree.core.LineDifference
copy, equals, hashCode, leftEndLine, leftStartLine, merge, rightEndLine, rightStartLine, toStringMethods inherited from class com._1c.g5.gumtree.core.Difference
getType, leftEnd, leftLength, leftStart, mergeType, rightEnd, rightLength, rightStart
-
Constructor Details
-
OneSideLineDifference
public OneSideLineDifference(int leftStart, int leftEnd, int rightStart, int rightEnd, int leftStartLine, int leftEndLine, int rightStartLine, int rightEndLine, com._1c.g5.gumtree.core.Difference.Type type, MergeFormatter.OneSideLineDifference.Side side) Creates a new instance.- Parameters:
leftStart- the start index of entity on the left sideleftEnd- the end index of entity on the left siderightStart- the start index of entity on the right siderightEnd- the end index of entity on the right sideleftStartLine- the start line index of entity on the left sideleftEndLine- the end line index of entity on the left siderightStartLine- the start line index of entity on the right siderightEndLine- the end line index of entity on the right sidetype- the kind of change, cannot benullside- the presence side, cannot benull
-
-
Method Details
-
getSide
Returns the difference presence side.- Returns:
- the difference presence side, never
null
-