Interface ChangeListener

    • Method Detail

      • onDocumentsStart

        void onDocumentsStart​(Document left,
                              Document right)
        Invoked before the iteration over the changes start.
        Parameters:
        left - the left document
        right - the right document
      • onDocumentsEnd

        void onDocumentsEnd​(Document left,
                            Document right)
        Invoked after the iteration over the changes finished.
        Parameters:
        left - the left document
        right - the right document
      • onChangeStart

        void onChangeStart​(int leftElem,
                           int leftLen,
                           int rightElem,
                           int rightLen)
        Invoked before a change starts.
        Parameters:
        leftElem - the index of the left element of this change.
        leftLen - the number of changed left elements.
        rightElem - the index of the right element of this change.
        rightLen - the number of changed right elements.
      • onChangeEnd

        void onChangeEnd()
        Invoked after a change finished.
      • onUnmodified

        void onUnmodified​(int leftIdx,
                          int rightIdx,
                          Document.Element elem)
        Invoked for an unmodified element
        Parameters:
        leftIdx - the index of the left element
        rightIdx - the index of the right element
        elem - the element
      • onDeleted

        void onDeleted​(int leftIdx,
                       int rightIdx,
                       Document.Element elem)
        Invoked for a deleted element
        Parameters:
        leftIdx - the index of the left element
        rightIdx - the index of the right element
        elem - the element
      • onInserted

        void onInserted​(int leftIdx,
                        int rightIdx,
                        Document.Element elem)
        Invoked for an inserted element
        Parameters:
        leftIdx - the index of the left element
        rightIdx - the index of the right element
        elem - the element