E
- the parent type of all elements produced by this API analyzerpublic abstract class BaseDifferenceAnalyzer<E extends Element<E>> extends Object implements DifferenceAnalyzer<E>
Constructor and Description |
---|
BaseDifferenceAnalyzer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isDescendRequired(E oldElement,
E newElement)
This default implementation returns
true only if both elements are non-null. |
void |
open()
Called right before the analysis starts.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginAnalysis, endAnalysis
public void open()
DifferenceAnalyzer
AutoCloseable.close()
method is provided through the AutoCloseable
super interface.open
in interface DifferenceAnalyzer<E extends Element<E>>
public boolean isDescendRequired(@Nullable E oldElement, @Nullable E newElement)
true
only if both elements are non-null.isDescendRequired
in interface DifferenceAnalyzer<E extends Element<E>>
oldElement
- the element from the old archivesnewElement
- the element from the new archivespublic void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.