Class MergeResultDifference


  • public class MergeResultDifference
    extends com._1c.g5.gumtree.core.Difference
    Description of a change between two ranges of comparable entities and theirs merge result.
    • Nested Class Summary

      • 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.Difference

        leftEnd, leftStart, rightEnd, rightStart, type
    • Constructor Summary

      Constructors 
      Constructor Description
      MergeResultDifference​(int leftStart, int leftEnd, int rightStart, int rightEnd, int mergeResultStart, int mergeResultEnd, com._1c.g5.gumtree.core.Difference.Type type)
      Creates a new instance.
    • Constructor Detail

      • MergeResultDifference

        public MergeResultDifference​(int leftStart,
                                     int leftEnd,
                                     int rightStart,
                                     int rightEnd,
                                     int mergeResultStart,
                                     int mergeResultEnd,
                                     com._1c.g5.gumtree.core.Difference.Type type)
        Creates a new instance.
        Parameters:
        leftStart - the start index of entity on the left side
        leftEnd - the end index of entity on the left side
        rightStart - the start index of entity on the right side
        rightEnd - the end index of entity on the right side
        mergeResultStart - the start index of entity on the merge result side
        mergeResultEnd - the end index of entity on the merge result side
        type - the kind of change, cannot be null
    • Method Detail

      • mergeResultStart

        public int mergeResultStart()
        Returns the start index of entity on the merge result side.
        Returns:
        the start index of entity on the merge result side
      • mergeResultEnd

        public int mergeResultEnd()
        Returns the end index of entity on the merge result side.
        Returns:
        the end index of entity on the merge result side
      • mergeResultLength

        public int mergeResultLength()
        Returns the number of entities on the merge result side.
        Returns:
        the number of entities on the merge result side