Interface Difference

  • All Known Subinterfaces:
    DifferenceParent

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public interface Difference
    Represents a difference generated by the diff performer. It holds information regarding the right and left intervals start and end offsets.
    • Method Detail

      • getLeftIntervalStart

        int getLeftIntervalStart()
        Get the difference left interval start offset.
        0 <= leftIntervalStart < left resource content length
        Returns:
        Left interval start offset.
      • getLeftIntervalEnd

        int getLeftIntervalEnd()
        Get the difference left interval end offset.
        0 <= leftIntervalEnd < left resource content length
        Returns:
        Left interval end offset.
      • getRightIntervalStart

        int getRightIntervalStart()
        Get the difference right interval start offset.
        0 <= rightIntervalStart < right resource content length
        Returns:
        Right interval start offset.
      • getRightIntervalEnd

        int getRightIntervalEnd()
        Get the difference right interval end offset.
        0 <= rightIntervalEnd < right resource content length
        Returns:
        Right interval end offset.
      • getType

        DifferenceType getType()
        Returns:
        The type of the difference.
        Since:
        22