DifferenceListener
public class FloatingPointTolerantDifferenceListener extends TextDifferenceListenerBase
This implementation uses an absolute tolerance value value for all numbers encountered, calculating a difference relative to one of the numbers compared might be more appropriate in general.
RETURN_ACCEPT_DIFFERENCE, RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL, RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR, RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT
Constructor | Description |
---|---|
FloatingPointTolerantDifferenceListener(DifferenceListener delegateTo,
double tolerance) |
Modifier and Type | Method | Description |
---|---|---|
protected int |
textualDifference(Difference d) |
Delegates to the nested DifferenceListener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attributeDifference, cdataDifference, commentDifference, differenceFound, skippedComparison, textDifference
public FloatingPointTolerantDifferenceListener(DifferenceListener delegateTo, double tolerance)
protected int textualDifference(Difference d)
TextDifferenceListenerBase
textualDifference
in class TextDifferenceListenerBase