Class CompareLineResult.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • leftContent

        public CompareLineResult.Builder leftContent​(String leftContent)
        A line from the content on the left.

        This may be empty if there is no matching line on the left for a line in the right content.

        Parameters:
        leftContent - the value to set
        Returns:
        this builder
      • rightContent

        public CompareLineResult.Builder rightContent​(String rightContent)
        A line from the content on the right.

        This may be empty if there is no matching line on the right for a line in the left content.

        Parameters:
        rightContent - the value to set
        Returns:
        this builder
      • diffType

        public CompareLineResult.Builder diffType​(String diffType)
        The result of the line comparison.

        An empty string means the lines being compared are the same. A pipe, |, means the lines are different, and a caret, > or <, means the line is only found either on the right or the left.

        Parameters:
        diffType - the value to set
        Returns:
        this builder
      • leftIndices

        public CompareLineResult.Builder leftIndices​(String leftIndices)
        A comma delimited set of indices that identify which characters are different from those in the right string.
        Parameters:
        leftIndices - the value to set
        Returns:
        this builder
      • rightIndices

        public CompareLineResult.Builder rightIndices​(String rightIndices)
        A comma delimited set of indices that identify which characters are different from those in the left string.
        Parameters:
        rightIndices - the value to set
        Returns:
        this builder