public interface DifferenceAnalyzer<E extends Element<E>> extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
beginAnalysis(E oldElement,
E newElement)
Called when the analysis of the two corresponding elements begins.
|
Report |
endAnalysis(E oldElement,
E newElement)
Called when the analysis of the two elements ends (i.e.
|
boolean |
isDescendRequired(E oldElement,
E newElement)
Tells whether the analyzer needs to descend "into" the two provided elements.
|
void |
open()
Called right before the analysis starts.
|
close
void open()
AutoCloseable.close()
method is provided through the AutoCloseable
super interface.void beginAnalysis(@Nullable E oldElement, @Nullable E newElement)
endAnalysis(Element, Element)
method will be called for these
two elements.oldElement
- the element from the old archivesnewElement
- the element from the new archivesboolean isDescendRequired(@Nullable E oldElement, @Nullable E newElement)
beginAnalysis(Element, Element)
and before endAnalysis(Element, Element)
with the same pair of
elements.
Note that this decision is made on the "filtered" trees. I.e. if the filters filter out children of an element, the analyzer cannot override that decision and try to include such elements in the analysis again.
oldElement
- the element from the old archivesnewElement
- the element from the new archivesReport endAnalysis(@Nullable E oldElement, @Nullable E newElement)
oldElement
- the element from the old archivesnewElement
- the element from the new archivesCopyright © 2014-2021 Lukas Krejci. All Rights Reserved.